/* FitMoris - Fitness & Wellness Platform */
:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --dark-lighter: #334155;
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

body {
    background-color: var(--dark);
    color: #E2E8F0;
    padding-top: 76px;
}

/* Logo */
.logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-brand { color: white !important; }
.nav-link {
    color: #94A3B8 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.1);
}

/* Hero */
.hero-section {
    min-height: calc(100vh - 76px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(15,23,42,0.95) 50%, rgba(15,23,42,1) 100%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: url('../images/mauritius-aerial.jpg') center/cover;
    opacity: 0.12;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(16,185,129,0.15); color: var(--primary);
    border: 1px solid rgba(16,185,129,0.3); border-radius: 100px;
    font-size: 14px; font-weight: 600;
}
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.hero-subtitle { font-size: 1.1rem; color: #94A3B8; max-width: 500px; }

/* Stats */
.hero-stat strong { display: block; font-size: 2rem; color: var(--primary); font-weight: 800; }
.hero-stat span { font-size: 0.85rem; color: #64748B; }

/* Cards */
.card {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(16,185,129,0.2);
}
.card-img-top {
    border-radius: 16px 16px 0 0;
    height: 200px; object-fit: cover;
}

/* Calculator cards */
.calc-card {
    cursor: pointer;
    padding: 2rem;
    text-align: center;
}
.calc-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 1rem;
}
.calc-icon.blue { background: rgba(59,130,246,0.15); }
.calc-icon.amber { background: rgba(245,158,11,0.15); }
.calc-icon.green { background: rgba(16,185,129,0.15); }
.calc-icon.purple { background: rgba(139,92,246,0.15); }

/* Program cards */
.program-card {
    min-height: 360px; border-radius: 16px;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
}
.program-overlay {
    background: linear-gradient(transparent 20%, rgba(15,23,42,0.95) 70%);
    padding: 2rem; width: 100%; color: white;
}
.program-tags span {
    padding: 4px 12px; background: rgba(255,255,255,0.15);
    border-radius: 100px; font-size: 12px; margin-right: 6px;
}

/* Coach cards */
.coach-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
}
.coach-avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach-tags span {
    padding: 3px 10px; background: rgba(16,185,129,0.1);
    color: var(--primary); border-radius: 6px;
    font-size: 12px; font-weight: 500; margin-right: 6px;
}

/* Testimonials */
.testimonial-card { position: relative; padding-top: 2.5rem; }
.testimonial-quote {
    position: absolute; top: 10px; left: 20px;
    font-size: 4rem; line-height: 1; color: var(--primary);
    opacity: 0.3; font-family: Georgia, serif;
}
.testimonial-result {
    padding: 4px 12px; background: rgba(16,185,129,0.1);
    color: var(--primary); border-radius: 100px;
    font-size: 12px; font-weight: 600;
}

/* Food data cards */
.food-card {
    padding: 1.25rem;
    transition: transform 0.2s;
}
.food-card:hover { transform: translateY(-2px); }
.food-cal { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.macro-bar { display: flex; gap: 3px; height: 6px; border-radius: 3px; overflow: hidden; }
.macro-bar span { flex: 1; }
.macro-bar .carb { background: #3B82F6; }
.macro-bar .protein { background: #10B981; }
.macro-bar .fat { background: #F59E0B; }

/* Newsletter */
.newsletter-section {
    background: var(--primary);
    color: white;
}
.newsletter-section h2 { color: white; }

/* Footer */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-links a {
    color: #64748B; text-decoration: none;
    display: block; padding: 4px 0; font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-contact li {
    color: #64748B; padding: 4px 0; font-size: 14px;
}
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #94A3B8; text-decoration: none;
    transition: all 0.2s;
}
.social-link:hover { background: var(--primary); color: white; }

/* Auth pages */
.auth-section {
    min-height: calc(100vh - 76px);
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}
.auth-card {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 2.5rem;
}

/* Dashboard */
.dashboard-sidebar {
    width: 260px;
    background: var(--dark-light);
    border-right: 1px solid rgba(255,255,255,0.05);
    min-height: calc(100vh - 76px);
    position: fixed;
    padding: 1.5rem 1rem;
}
.dashboard-main {
    margin-left: 260px;
    padding: 2rem;
    min-height: calc(100vh - 76px);
}
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    color: #94A3B8; text-decoration: none;
    font-size: 14px; margin-bottom: 4px;
    transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(16,185,129,0.1); color: var(--primary);
}
.stat-card {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; padding: 1.25rem;
}
.stat-card .label { font-size: 13px; color: #64748B; }
.stat-card .value { font-size: 1.75rem; font-weight: 800; }
.stat-card .change { font-size: 12px; color: var(--primary); }

/* Progress bars */
.progress { background: var(--dark-lighter); height: 8px; border-radius: 4px; }
.progress-bar { border-radius: 4px; }

/* Form controls */
.form-control, .form-select {
    background: var(--dark-lighter) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    border-radius: 10px !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15) !important;
}
.form-control::placeholder { color: #64748B !important; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
    background: var(--primary) !important; border-color: var(--primary) !important;
}
.btn-primary:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-success { background: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1) !important; }

/* Alerts */
.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: var(--primary-light); }
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2); color: #FCA5A5; }

/* Badges */
.badge {
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
}

/* Page header */
.page-header {
    padding: 80px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-light), var(--dark));
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; }
.page-header p { color: #64748B; max-width: 500px; margin: 0 auto; }

/* Tables */
.table { color: #E2E8F0; }
.table thead th { border-bottom: 1px solid rgba(255,255,255,0.1); color: #94A3B8; font-weight: 600; font-size: 13px; }
.table tbody td { border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-lighter); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.5s ease-out; }

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .dashboard-sidebar { display: none; }
    .dashboard-main { margin-left: 0; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-stat strong { font-size: 1.5rem; }
    body { padding-top: 70px; }
}
