@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   getfitinyour20s - Zoho-Style Executive Dark UI System
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-dark-card: #111827;
    --bg-dark-card-hover: #161e2e;
    --bg-glass: rgba(17, 24, 39, 0.88);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(0, 210, 255, 0.3);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Zoho Signature Corporate Palettes */
    --brand-primary: #10b981; /* Zoho Emerald */
    --brand-cyan: #00d2ff;    /* Zoho Electric Cyan */
    --brand-blue: #2563eb;    /* Zoho Royal Blue */
    --brand-coral: #ef4444;   /* Zoho Coral Red */
    --brand-amber: #f59e0b;   /* Zoho Warm Amber */
    --brand-purple: #8b5cf6;  /* Zoho Soft Violet */
    
    /* Radius & Elevation Shadows */
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.2);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 12% 10%, rgba(0, 210, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 88% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Card System (Zoho Modern Elevation) */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.2s ease;
}

.glass-card:hover {
    border-color: rgba(0, 210, 255, 0.22);
}

/* Zoho Modern Badges & Accents */
.badge-neon-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.badge-neon-cyan {
    background: rgba(0, 210, 255, 0.12);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    font-weight: 600;
}

.badge-neon-orange {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
}

.badge-neon-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 600;
}

/* Premium Buttons */
.btn-primary-neon {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #0b141a;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.35);
    transition: all 0.25s ease;
}

.btn-primary-neon:hover, .btn-primary-neon:focus {
    background: linear-gradient(135deg, #26e988 0%, #00e676 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.btn-cyan-neon {
    background: linear-gradient(135deg, #00e5ff 0%, #00b0ff 100%);
    color: #001e28;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
    transition: all 0.25s ease;
}

.btn-cyan-neon:hover, .btn-cyan-neon:focus {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-outline-neon {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline-neon:hover {
    background: var(--brand-primary);
    color: #0b141a;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Navbar System */
.app-navbar {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-primary) !important;
    background: rgba(0, 230, 118, 0.08);
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00e676 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-20s {
    background: #00e676;
    color: #0b141a;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 800;
    margin-left: 4px;
    -webkit-text-fill-color: initial;
}

/* Stat Cards & Hover Elevation */
.stat-card {
    position: relative;
    overflow: hidden;
}

/* Square Progress Photo Container (1:1 Aspect Ratio) */
.portrait-photo-container, .square-photo-container {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    object-fit: cover !important;
    background-color: #0f172a;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 230, 118, 0.3);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Form Controls */
.form-control-custom, .form-select-custom {
    background-color: #121824;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
    background-color: #121824;
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
    outline: none;
}

/* Water tracker interactive wave */
.water-meter {
    height: 180px;
    width: 100%;
    background: #0f172a;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #00e5ff 0%, #0077b6 100%);
    opacity: 0.7;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.water-label {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Phase Timeline Progress */
.phase-card {
    border-left: 4px solid var(--text-muted);
    transition: all 0.3s ease;
}

.phase-card.active {
    border-left-color: var(--brand-primary);
    background: rgba(0, 230, 118, 0.04);
}

.phase-card.completed {
    border-left-color: var(--brand-cyan);
}

.phase-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Exercise Cards */
.exercise-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.exercise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Accordion Dark */
.accordion-custom .accordion-item {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-custom .accordion-button {
    background-color: var(--bg-dark-card);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.1rem 1.25rem;
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background-color: rgba(0, 230, 118, 0.08);
    color: var(--brand-primary);
}

.accordion-custom .accordion-button::after {
    filter: invert(1) brightness(2);
}

.accordion-custom .accordion-body {
    background-color: #121824;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Profile Hero & Avatar styling */
.profile-hero-card {
    background: linear-gradient(135deg, rgba(21, 28, 44, 0.95) 0%, rgba(11, 15, 25, 0.98) 100%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.avatar-option {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: rgba(0, 229, 255, 0.6);
}

.avatar-radio:checked + .avatar-option {
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
    transform: scale(1.15);
}

.profile-nav-pills .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(21, 28, 44, 0.5);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.profile-nav-pills .nav-link:hover {
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 230, 118, 0.3);
}

.profile-nav-pills .nav-link.active {
    color: #0b141a !important;
    background: linear-gradient(135deg, #00e676 0%, #00e5ff 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.35);
    font-weight: 700;
}

.weight-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.weight-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #00e676, #00e5ff);
    z-index: 1;
    transform: translateY(-50%);
}

.weight-node {
    position: relative;
    z-index: 2;
    background: #0f172a;
    border: 3px solid var(--brand-primary);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.weight-node.current {
    border-color: var(--brand-cyan);
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: scale(1.15);
}

.weight-node.target {
    border-color: var(--brand-amber);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
}

.terminal-card {
    background: #090d16;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    font-family: 'Consolas', 'Courier New', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* Footer */
.app-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.95);
    padding: 2rem 0 1.5rem;
}

/* Printable PDF Styles */
@media print {
    .app-navbar, .app-footer, .btn, .btn-group, .modal, .badge-neon-green, .badge-neon-cyan {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .glass-card {
        background: #ffffff !important;
        border: 1px solid #ddd !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    .text-white, .text-muted {
        color: #000000 !important;
    }
}
