/* ============================================
   Happy Living Nutrition - Modern Pastel Design
   ============================================ */

/* Google Fonts - Poppins (like tiboom.fr) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Pastel Color Palette */
:root {
    /* Primary Pastel Colors */
    --primary: #E8B4B8;          /* Dusty Rose */
    --primary-light: #F5D6D8;    /* Light Rose */
    --primary-dark: #D49A9E;     /* Deep Rose */
    
    /* Secondary Colors */
    --secondary: #A8D5BA;        /* Sage Green */
    --secondary-light: #C5E8D2;  /* Light Sage */
    --secondary-dark: #8BC4A0;   /* Deep Sage */
    
    /* Accent Colors */
    --accent: #B8D4E8;           /* Powder Blue */
    --accent-light: #D6E8F5;     /* Light Blue */
    --accent-alt: #E8D4B8;       /* Warm Beige */
    --peach: #FFDAB9;            /* Peach */
    --lavender: #E6E6FA;         /* Lavender */
    
    /* Neutral Colors */
    --cream: #FDF8F5;            /* Warm Cream */
    --white: #FFFFFF;
    --gray-50: #FAFAF9;
    --gray-100: #F5F5F4;
    --gray-200: #E7E5E4;
    --gray-300: #D6D3D1;
    --gray-400: #A8A29E;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;
    
    /* Text Colors */
    --text-primary: #3D3D3D;
    --text-secondary: #6B6B6B;
    --text-light: #9B9B9B;
    
    /* Fonts - Poppins */
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--cream);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 0;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background-color: var(--white);
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(232, 180, 184, 0.2);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 55px;
    width: auto;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

nav a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

nav a:hover {
    color: var(--primary-dark);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    transition: width var(--transition-base);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    padding: 0.75rem 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(232, 180, 184, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid rgba(232, 180, 184, 0.15);
    border-top: 1px solid rgba(232, 180, 184, 0.15);
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-content a:hover {
    background: linear-gradient(90deg, var(--primary-light), transparent);
    color: var(--primary-dark);
    padding-left: 1.5rem;
}

.dropdown-content a::after {
    display: none;
}

/* Mobile Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.burger div {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

@media (max-width: 1024px) {
    .burger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.75rem;
        transform: translateY(-150%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 248, 245, 0.9) 0%, rgba(253, 248, 245, 0.7) 50%, rgba(253, 248, 245, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 4rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ============================================
   Page Hero (Service Pages)
   ============================================ */
.page-hero {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.page-hero .col-lg-6 {
    flex: 1;
    min-width: 300px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-hero .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.page-hero img {
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    transition: transform var(--transition-slow);
}

.page-hero img:hover {
    transform: translateY(-5px);
}

.page-hero .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    color: white;
}

@media (max-width: 991px) {
    .page-hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .page-hero .row {
        flex-direction: column;
    }
    
    .page-hero img {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 180, 184, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 180, 184, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(168, 213, 186, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 213, 186, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.btn-lg {
    padding: 1.1rem 2.75rem;
    font-size: 1rem;
}

/* ============================================
   Content Sections
   ============================================ */
.section {
    padding: 5rem 2rem;
}

.section-sm {
    padding: 3rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Background variations */
.bg-white {
    background: var(--white);
}

.bg-cream {
    background: var(--cream);
}

.bg-primary-light {
    background: var(--primary-light);
}

.bg-secondary-light {
    background: var(--secondary-light);
}

.bg-accent-light {
    background: var(--accent-light);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-base);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 180, 184, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.service-card:hover {
    border-color: rgba(232, 180, 184, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--peach));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-dark);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--primary-light);
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.blog-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card .card-title {
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: auto;
}

.read-more svg {
    transition: transform var(--transition-fast);
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
}

/* ============================================
   Affiliations Section
   ============================================ */
.affiliations {
    padding: 3rem 2rem;
    background: var(--white);
    text-align: center;
}

.affiliations-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.affiliations-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.affiliations-logos img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-base);
    filter: grayscale(30%);
}

.affiliations-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 1rem;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-text a {
    text-decoration: underline;
}

/* ============================================
   Blog Single Post
   ============================================ */
.blog-header {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
}

.blog-header h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.blog-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.blog-content h2 {
    margin-top: 2.5rem;
}

.blog-content h3 {
    margin-top: 2rem;
}

.blog-content ul, .blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   Admin Styles
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-800);
    color: var(--white);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 1.5rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--gray-700);
    color: var(--white);
}

.admin-nav a svg {
    width: 20px;
    height: 20px;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: var(--gray-50);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: var(--gray-50);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--secondary-light);
    color: #166534;
    border: 1px solid var(--secondary);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: var(--accent-light);
    color: #1E40AF;
    border: 1px solid var(--accent);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: var(--secondary-light);
    color: #166534;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.pagination a {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--text-primary);
}

.pagination a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Utility Classes
   ============================================ */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

.g-4 { gap: 1.5rem; }
.g-5 { gap: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

.mx-auto { margin-left: auto; margin-right: auto; }

.img-fluid { max-width: 100%; height: auto; }

.rounded-4 { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    color: white;
}

.h-100 { height: 100%; }

.border-0 { border: 0 !important; }
.shadow-sm { box-shadow: var(--shadow-sm); }

.list-unstyled { 
    list-style: none; 
    padding-left: 0; 
    margin: 0;
}

.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

/* Grid System Helpers */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.row > * {
    padding: 0.75rem;
    box-sizing: border-box;
}

.col-md-3 { flex: 0 0 auto; width: 25%; }
.col-md-4 { flex: 0 0 auto; width: 33.333333%; }
.col-md-6 { flex: 0 0 auto; width: 50%; }
.col-lg-6 { flex: 0 0 auto; width: 50%; }
.col-lg-8 { flex: 0 0 auto; width: 66.666667%; }

@media (max-width: 991px) {
    .col-lg-6, .col-lg-8 { width: 100%; }
}

@media (max-width: 767px) {
    .col-md-3, .col-md-4, .col-md-6 { width: 100%; }
}
