/**
 * BusinessMentors Platform - UNIFIED THEME SYSTEM
 * ================================================
 *
 * 🎯 SINGLE SOURCE OF TRUTH for all platform styling
 *
 * This file consolidates and replaces:
 * - theme-config.css (official design system)
 * - theme-master.css (consolidated theme system)
 *
 * ✅ FEATURES:
 * - Admin-configurable colors via theme settings
 * - Brand-compliant typography (Parkinsans/Lato)
 * - Complete design system with spacing, shadows, etc.
 * - Legacy compatibility for existing code
 * - UX best practices with limited color palette
 *
 * 🎨 BRAND COMPLIANCE:
 * - Primary Red (var(--color-primary)) for CTAs and brand elements
 * - Dark Navy (var(--color-secondary)) for dark sections and mentor cards
 * - Parkinsans font for headings and important elements
 * - Lato font for body text and descriptions
 *
 * 📱 RESPONSIVE & ACCESSIBLE:
 * - Mobile-first design approach
 * - WCAG AA compliant color contrasts
 * - Consistent spacing and typography scales
 */

/* ========================================
   🌐 FONT IMPORTS - Official Typography
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap');

:root {
    /* ========================================
       🎨 BRAND COLORS - BusinessMentors Identity
       ======================================== */

    /* Primary Brand Colors - Official Palette */
    /* NOTE: Primary colors are defined in theme-variables.css (admin-controlled) */
    /* Do NOT redefine --color-primary, --color-primary-dark, etc. here */

    /* Primary Gradients - Hero sections, main CTAs */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-primary-vertical: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);

    /* Secondary Colors - Dark Navy (Mentor cards, dark sections) */
    --color-secondary: var(--color-secondary);            /* Main dark navy - dark sections, mentor cards */
    --color-secondary-light: #2A2A4A;      /* Lighter navy - hover states */
    --color-secondary-lighter: #3D3D5C;    /* Even lighter - borders, dividers */
    --color-secondary-dark: #0B0B20;       /* Darker navy - deep backgrounds */

    /* Almost Black - Text and Dark Elements */
    --color-dark: #131315;                 /* Almost black - primary text color */
    --color-dark-light: #2A2A2C;          /* Secondary text, subtitles */
    --color-dark-lighter: #4A4A4C;        /* Disabled text, placeholders */

    /* Light Colors - Backgrounds */
    --color-light-bg: #EFEAF9;            /* Light purple - section backgrounds */
    --color-white: #FFFFFF;               /* Pure white - cards, content areas */
    --color-black: #000000;               /* True black - high contrast text */

    /* ========================================
       🚦 SEMANTIC COLORS - System States
       ======================================== */

    /* Success - Green palette */
    --color-success: #10B981;              /* Main success green */
    --color-success-dark: #059669;         /* Success hover state */
    --color-success-light: #A7F3D0;        /* Success backgrounds */
    --color-success-lighter: #D1FAE5;      /* Very light success */

    /* Warning - Orange palette */
    --color-warning: #F59E0B;              /* Main warning orange */
    --color-warning-dark: #D97706;         /* Warning hover state */
    --color-warning-light: #FDE68A;        /* Warning backgrounds */
    --color-warning-lighter: #FEF3C7;      /* Very light warning */

    /* Error/Danger - Red palette */
    --color-error: #EF4444;                /* Main error red */
    --color-danger: #DC3545;               /* Alternative danger red */
    --color-error-dark: #DC2626;           /* Error hover state */
    --color-error-light: #FECACA;          /* Error backgrounds */
    --color-error-lighter: #FEE2E2;        /* Very light error */

    /* Info - Blue palette */
    --color-info: #3B82F6;                 /* Main info blue */
    --color-info-dark: var(--color-primary);            /* Info hover state */
    --color-info-light: #93C5FD;           /* Info backgrounds */
    --color-info-lighter: #DBEAFE;         /* Very light info */

    /* ========================================
       🎨 NEUTRAL GRAYS - UI Elements
       ======================================== */

    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;             /* Standard muted text */
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-gray-950: #030712;

    /* Common Gray Aliases */
    --color-muted: var(--color-gray-500);
    --color-border: var(--color-gray-200);
    --color-border-light: var(--color-gray-100);
    --color-border-dark: var(--color-gray-300);

    /* ========================================
       📝 TYPOGRAPHY SYSTEM - Brand Fonts
       ======================================== */

    /* Font Families - Official Brand Typography */
    --font-heading: 'Parkinsans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Font Sizes - Harmonious Scale */
    --text-xs: 0.75rem;      /* 12px - Small text, captions */
    --text-sm: 0.875rem;     /* 14px - Secondary text */
    --text-base: 1rem;       /* 16px - Body text */
    --text-lg: 1.125rem;     /* 18px - Large body text */
    --text-xl: 1.25rem;      /* 20px - Small headings */
    --text-2xl: 1.5rem;      /* 24px - Headings */
    --text-3xl: 1.875rem;    /* 30px - Large headings */
    --text-4xl: 2.25rem;     /* 36px - Hero headings */
    --text-5xl: 3rem;        /* 48px - Large hero text */
    --text-6xl: 3.75rem;     /* 60px - Extra large */
    --text-7xl: 4.5rem;      /* 72px - Massive headings */

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ========================================
       📐 SPACING SYSTEM - Consistent Rhythm
       ======================================== */

    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;   /* 2px */
    --space-1: 0.25rem;      /* 4px */
    --space-1-5: 0.375rem;   /* 6px */
    --space-2: 0.5rem;       /* 8px */
    --space-2-5: 0.625rem;   /* 10px */
    --space-3: 0.75rem;      /* 12px */
    --space-3-5: 0.875rem;   /* 14px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */

    /* ========================================
       🔲 BORDERS & RADIUS - Visual Hierarchy
       ======================================== */

    /* Border Widths */
    --border-width: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;

    /* Border Radius - Consistent Rounding */
    --radius-none: 0;
    --radius-sm: 0.125rem;    /* 2px */
    --radius-base: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;    /* 6px */
    --radius-lg: 0.5rem;      /* 8px */
    --radius-xl: 0.75rem;     /* 12px */
    --radius-2xl: 1rem;       /* 16px */
    --radius-3xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;    /* Pills/circles */

    /* Component-specific radius aliases */
    --radius-card: var(--radius-2xl);
    --radius-button: var(--radius-3xl);  /* Updated to 24px for rounded buttons like screenshot */
    --radius-input: var(--radius-md);

    /* ========================================
       🌟 SHADOWS & ELEVATION - Depth System
       ======================================== */

    /* Base shadows using dark color for consistency */
    --shadow-xs: 0 1px 2px 0 rgba(19, 19, 21, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(19, 19, 21, 0.1), 0 1px 2px 0 rgba(19, 19, 21, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(19, 19, 21, 0.1), 0 2px 4px -1px rgba(19, 19, 21, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(19, 19, 21, 0.1), 0 4px 6px -2px rgba(19, 19, 21, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(19, 19, 21, 0.1), 0 10px 10px -5px rgba(19, 19, 21, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(19, 19, 21, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(19, 19, 21, 0.06);

    /* Brand colored shadows for elevated elements */
    --shadow-primary: 0 8px 32px rgba(var(--color-primary-rgb), 0.3);
    --shadow-primary-lg: 0 16px 48px rgba(var(--color-primary-rgb), 0.4);

    /* Component-specific shadow aliases */
    --shadow-card: var(--shadow-md);
    --shadow-card-hover: var(--shadow-lg);
    --shadow-button: var(--shadow-sm);
    --shadow-button-hover: var(--shadow-primary);

    /* Mentor Dashboard Specific Shadows */
    --shadow-mentor-card: 0 20px 40px -10px rgba(var(--color-secondary-rgb), 0.1);
    --shadow-mentor-hero: 0 20px 40px -10px rgba(var(--color-secondary-rgb), 0.15);

    /* Override Bootstrap success/warning classes for mentor dashboard */
    --override-success-bg: var(--color-secondary);
    --override-success-color: var(--color-white);
    --override-warning-bg: var(--color-primary);
    --override-warning-color: var(--color-white);

    /* ========================================
       🎨 MENTOR DASHBOARD DESIGN SYSTEM
       ======================================== */

    /* Mentor-specific gradients for dashboard */
    --gradient-secondary-dashboard: linear-gradient(135deg, var(--color-secondary) 0%, rgba(var(--color-secondary-rgb), 0.8) 100%);
    --gradient-secondary-light: linear-gradient(135deg, var(--color-secondary) 0%, rgba(var(--color-secondary-rgb), 0.6) 100%);
    --gradient-primary-dashboard: linear-gradient(135deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.6) 100%);
    --gradient-primary-soft: linear-gradient(135deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.1) 100%);

    /* Progress bar gradients */
    --gradient-progress-primary: linear-gradient(90deg, var(--color-primary) 0%, rgba(var(--color-primary-rgb), 0.7) 100%);
    --gradient-progress-secondary: linear-gradient(90deg, var(--color-secondary) 0%, rgba(var(--color-secondary-rgb), 0.7) 100%);

    /* Card overlay gradients */
    --gradient-overlay-light: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    --gradient-overlay-dark: linear-gradient(135deg, rgba(19, 19, 21, 0.9) 0%, rgba(19, 19, 21, 0.7) 100%);

    /* Mentor Dashboard radius values */
    --radius-mentor-button: 20px;        /* Specific for mentor dashboard buttons */
    --radius-mentor-section: 16px;       /* Specific for mentor dashboard sections */
    --radius-mentor-card: var(--radius-2xl);   /* Standard card radius */

    /* ========================================
       ⚡ ANIMATIONS & TRANSITIONS
       ======================================== */

    /* Transition Durations */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Easing Functions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Common transition patterns */
    --transition-all: all var(--transition-base);
    --transition-colors: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
    --transition-transform: transform var(--transition-base);
    --transition-opacity: opacity var(--transition-base);

    /* ========================================
       🎛️ Z-INDEX SYSTEM - Layer Management
       ======================================== */

    --z-negative: -1;
    --z-0: 0;
    --z-10: 10;          /* Dropdowns */
    --z-20: 20;          /* Sticky elements */
    --z-30: 30;          /* Fixed headers */
    --z-40: 40;          /* Overlays */
    --z-50: 50;          /* Modals */
    --z-60: 60;          /* Notifications */
    --z-70: 70;          /* Tooltips */
    --z-80: 80;          /* Loading screens */
    --z-90: 90;          /* Critical alerts */
    --z-max: 9999;       /* Dev tools */

    /* ========================================
       🔧 ADMIN CONFIGURABLE VARIABLES
       ======================================== */

    /* These variables can be overridden by admin theme settings */
    /* Default values match the official BusinessMentors design */

    /* Application Identity */
    --app-name: "BusinessMentors";
    --app-description: "Connect with expert mentors to accelerate your business growth";

    /* Typography - Admin Configurable */
    --font-heading-dynamic: var(--font-heading);  /* Default: Parkinsans */
    --font-body-dynamic: var(--font-body);        /* Default: Lato */
    --font-size-scale: 1.0;                       /* Font scaling multiplier */

    /* Component Styling - Admin Configurable */
    --radius-button-dynamic: var(--radius-3xl);   /* Default: 24px (rounded like screenshot) */
    --radius-card-dynamic: var(--radius-2xl);     /* Default: 16px */
    --radius-input-dynamic: var(--radius-md);     /* Default: 6px */

    /* Button Behavior - Admin Configurable */
    --button-style: "gradient";                   /* Options: gradient, solid */
    --button-hover-effect: "secondary";           /* Options: darken, secondary, scale */

    /* Feature Toggles - Admin Configurable */
    --enable-animations: 1;                       /* 1 = enabled, 0 = disabled */
    --enable-shadows: 1;                          /* 1 = enabled, 0 = disabled */

    /* Color Overrides - Admin Configurable */
    --admin-primary: var(--color-primary);
    --admin-secondary: var(--color-secondary);
    --admin-success: var(--color-success);
    --admin-warning: var(--color-warning);
    --admin-danger: var(--color-error);
    --admin-info: var(--color-info);
    --admin-dark: var(--color-dark);
    --admin-light: var(--color-light-bg);

    /* Layout colors - admin configurable */
    --admin-sidebar-bg: var(--color-secondary);
    --admin-sidebar-text: var(--color-white);
    --admin-header-bg: var(--color-white);
    --admin-header-text: var(--color-dark);

    /* ========================================
       🔄 LEGACY COMPATIBILITY LAYER
       ======================================== */

    /* Legacy theme variables - DO NOT USE IN NEW CODE */
    --theme-deafult: var(--color-primary);      /* Keep typo for compatibility */
    --theme-primary: var(--color-primary);
    --theme-secondary: var(--color-secondary);
    --theme-success: var(--color-success);
    --theme-warning: var(--color-warning);
    --theme-danger: var(--color-error);
    --theme-info: var(--color-info);
    --theme-dark: var(--color-dark);
    --theme-light: var(--color-light-bg);
    --theme-sidebar_bg: var(--admin-sidebar-bg);
    --theme-sidebar_text: var(--admin-sidebar-text);
    --theme-header_bg: var(--admin-header-bg);
    --theme-header_text: var(--admin-header-text);

    /* Legacy BM prefixed variables - DO NOT USE IN NEW CODE */
    --bm-primary: var(--color-primary);
    --bm-secondary: var(--color-secondary);
    --bm-accent: var(--color-primary-light);
    --bm-success: var(--color-success);
    --bm-warning: var(--color-warning);
    --bm-danger: var(--color-error);
    --bm-info: var(--color-info);
    --bm-white: var(--color-white);
    --bm-black: var(--color-black);
    --bm-light: var(--color-light-bg);
    --bm-dark: var(--color-dark);
    --bm-grey: var(--color-gray-500);
    --bm-sidebar-bg: var(--admin-sidebar-bg);
    --bm-sidebar-text: var(--admin-sidebar-text);
    --bm-header-bg: var(--admin-header-bg);
    --bm-header-text: var(--admin-header-text);
    --bm-font-primary: var(--font-heading);
    --bm-font-secondary: var(--font-body);
    --bm-font-size-base: var(--text-base);
    --bm-line-height-base: var(--leading-normal);
    --bm-spacing-xs: var(--space-1);
    --bm-spacing-sm: var(--space-2);
    --bm-spacing-md: var(--space-4);
    --bm-spacing-lg: var(--space-6);
    --bm-spacing-xl: var(--space-12);
    --bm-radius-sm: var(--radius-sm);
    --bm-radius-md: var(--radius-lg);
    --bm-radius-lg: var(--radius-3xl);
    --bm-radius-round: var(--radius-full);
    --bm-shadow-sm: var(--shadow-sm);
    --bm-shadow-md: var(--shadow-md);
    --bm-shadow-lg: var(--shadow-lg);
}

/* ========================================
   🧩 BASE UTILITY CLASSES
   ======================================== */

/* Typography Classes - Enforcing Brand Fonts */
.heading-hero {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-dark);
}

.heading-1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-dark);
}

.heading-2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-snug);
    color: var(--color-dark);
}

.heading-3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--leading-snug);
    color: var(--color-dark);
}

.body-text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-dark);
}

.body-text-large {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-dark);
}

/* Font Family Utilities */
.font-heading { font-family: var(--font-heading) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* Statistics/Numbers from homepage design */
.statistic-number {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: var(--leading-none);
}

/* Gradient Text */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
}

/* ========================================
   🎨 COMPONENT BASE CLASSES
   ======================================== */

/* Buttons - Brand Compliant with Dynamic Configuration */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading-dynamic);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-button-dynamic);  /* Now uses admin-configurable 24px */
    border: var(--border-width) solid transparent;
    cursor: pointer;
    transition: calc(var(--transition-base) * var(--enable-animations));
    text-decoration: none;
    line-height: var(--leading-tight);
    font-size: calc(var(--text-base) * var(--font-size-scale));
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
}

/* Enhanced hover effects - configurable via admin settings */
.btn-primary:hover {
    color: var(--color-white);
    text-decoration: none;
    transform: calc(translateY(-2px) * var(--enable-animations));
    box-shadow: calc(var(--shadow-primary) * var(--enable-shadows));
}

/* Primary button hover effect: Secondary color option */
.btn-primary[data-hover-effect="secondary"]:hover,
.btn-primary.hover-secondary:hover {
    background: var(--color-secondary) !important;
}

/* Primary button hover effect: Darken option (default) */
.btn-primary[data-hover-effect="darken"]:hover,
.btn-primary.hover-darken:hover {
    background: var(--gradient-primary-hover);
}

/* Primary button hover effect: Scale option */
.btn-primary[data-hover-effect="scale"]:hover,
.btn-primary.hover-scale:hover {
    background: var(--gradient-primary);
    transform: calc(scale(1.05) * var(--enable-animations));
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: var(--radius-button-dynamic);
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    transform: calc(translateY(-1px) * var(--enable-animations));
    color: var(--color-white);
}

/* Global button consistency enforcement */
button, .button, input[type="submit"], input[type="button"] {
    border-radius: var(--radius-button-dynamic) !important;
    font-family: var(--font-heading-dynamic) !important;
}

/* Ensure all primary buttons use the configured hover effect */
.btn-primary {
    /* Default to secondary hover effect as configured in CSS variables */
    background: var(--gradient-primary);
}

/* When hover effect is set to 'secondary', override the hover state */
:root[data-button-hover="secondary"] .btn-primary:hover {
    background: var(--color-secondary) !important;
}

:root[data-button-hover="darken"] .btn-primary:hover {
    background: var(--gradient-primary-hover) !important;
}

:root[data-button-hover="scale"] .btn-primary:hover {
    transform: calc(scale(1.05) * var(--enable-animations)) !important;
}

/* Cards - Dynamic Border Radius */
.card {
    background: var(--color-white);
    border-radius: var(--radius-card-dynamic);  /* Admin configurable: 16px default */
    padding: var(--space-6);
    box-shadow: calc(var(--shadow-card) * var(--enable-shadows));
    border: var(--border-width) solid var(--color-border-light);
    transition: calc(var(--transition-all) * var(--enable-animations));
}

.card:hover {
    box-shadow: calc(var(--shadow-card-hover) * var(--enable-shadows));
    transform: calc(translateY(-2px) * var(--enable-animations));
}

.card-dark {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary-light);
    border-radius: var(--radius-card-dynamic);
}

.card-light {
    background: var(--color-light-bg);
    color: var(--color-dark);
    border-color: var(--color-border);
    border-radius: var(--radius-card-dynamic);
}

/* Section Components */
.section-hero {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-20) 0;
    text-align: center;
}

.section-dark {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-16) 0;
}

.section-light {
    background: var(--color-light-bg);
    color: var(--color-dark);
    padding: var(--space-16) 0;
}

/* Form Controls - Dynamic Configuration */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3);
    font-family: var(--font-body-dynamic);
    font-size: calc(var(--text-base) * var(--font-size-scale));
    line-height: var(--leading-normal);
    color: var(--color-dark);
    background-color: var(--color-white);
    border: var(--border-width-2) solid var(--color-border);
    border-radius: var(--radius-input-dynamic);  /* Admin configurable: 6px default */
    transition: calc(var(--transition-colors) * var(--enable-animations));
}

.form-control:focus {
    border-color: var(--admin-primary);
    outline: none;
    box-shadow: calc(0 0 0 3px rgba(var(--color-primary-rgb), 0.1) * var(--enable-shadows));
}

/* Ensure all inputs use consistent styling */
input, textarea, select {
    border-radius: var(--radius-input-dynamic) !important;
    font-family: var(--font-body-dynamic) !important;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ========================================
   📱 RESPONSIVE UTILITIES
   ======================================== */

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

@media (max-width: 768px) {
    .heading-hero {
        font-size: var(--text-4xl);
    }

    .heading-1 {
        font-size: var(--text-3xl);
    }

    .heading-2 {
        font-size: var(--text-2xl);
    }

    .statistic-number {
        font-size: var(--text-5xl);
    }

    .btn {
        padding: var(--space-2-5) var(--space-4);
        font-size: var(--text-sm);
    }

    .card {
        padding: var(--space-4);
    }
}

/* ========================================
   🌈 COLOR UTILITY CLASSES
   ======================================== */

/* Text Colors */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }
.text-info { color: var(--color-info) !important; }
.text-muted { color: var(--color-muted) !important; }
.text-white { color: var(--color-white) !important; }
.text-dark { color: var(--color-dark) !important; }

/* Background Colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-warning { background-color: var(--color-warning) !important; }
.bg-error { background-color: var(--color-error) !important; }
.bg-info { background-color: var(--color-info) !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-light { background-color: var(--color-light-bg) !important; }
.bg-dark { background-color: var(--color-dark) !important; }

/* Gradient Backgrounds */
.bg-gradient-primary { background: var(--gradient-primary) !important; }

/* Border Colors */
.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--color-secondary) !important; }

/* Shadows */
.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-primary { box-shadow: var(--shadow-primary) !important; }

/* ========================================
   🔧 ADMIN PANEL OVERRIDES
   ======================================== */

/* Admin buttons using configurable colors */
.btn-admin-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-all);
}

.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    color: var(--color-white);
}

/* Admin sidebar styling */
.admin-sidebar {
    background-color: var(--admin-sidebar-bg);
    color: var(--admin-sidebar-text);
}

.admin-sidebar .sidebar-link {
    color: var(--admin-sidebar-text);
    transition: var(--transition-all);
}

.admin-sidebar .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.admin-sidebar .sidebar-link.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Admin header styling */
.admin-header {
    background-color: var(--admin-header-bg);
    color: var(--admin-header-text);
    border-bottom: 1px solid var(--color-gray-200);
}

/* ========================================
   🎯 BEST PRACTICES ENFORCEMENT
   ======================================== */

/* Ensure headings use Parkinsans font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
}

/* Ensure body text uses Lato font */
body, p, span, div, a, input, textarea, select, button {
    font-family: var(--font-body);
}

/* Override any hardcoded fonts */
.font-poppins { font-family: var(--font-body) !important; }
.font-roboto { font-family: var(--font-body) !important; }

/* ========================================
   🎯 MENTOR DASHBOARD BOOTSTRAP OVERRIDES
   ======================================== */

/* Override Bootstrap success/warning classes in mentor profile */
.mentor-profile .bg-success,
.mentor-profile .badge-success,
.mentor-profile .text-success,
.mentor-profile .alert-success {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-secondary) !important;
}

.mentor-profile .bg-warning,
.mentor-profile .badge-warning,
.mentor-profile .text-warning,
.mentor-profile .alert-warning {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
}

/* Specific overrides for roadmap badges */
.step-status.completed,
.badge.completed,
[class*="completat"],
[class*="COMPLETAT"] {
    background: var(--gradient-secondary-light) !important;
    color: var(--color-white) !important;
    border-color: var(--color-secondary) !important;
}

.step-status.available,
.step-status.optional,
.badge.optional,
.badge.warning,
[class*="optional"],
[class*="OPTIONAL"] {
    background: var(--gradient-primary-dashboard) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
}

/* ========================================
   🏁 END OF UNIFIED THEME SYSTEM
   ======================================== */

/*
 * 🎉 CONSOLIDATION COMPLETE!
 *
 * This unified theme system provides:
 * ✅ Single source of truth for all styling
 * ✅ Admin-configurable colors via theme settings
 * ✅ Brand-compliant typography (Parkinsans/Lato)
 * ✅ Complete design system with spacing, shadows, etc.
 * ✅ Legacy compatibility for existing code
 * ✅ UX best practices with limited color palette
 * ✅ Responsive design support
 * ✅ Accessibility compliance
 *
 * USAGE:
 * Import this file at the top of component stylesheets:
 * @import url('./business-mentors-unified-theme.css');
 *
 * REPLACE:
 * background: var(--color-primary); → background: var(--color-primary);
 * color: var(--color-secondary); → color: var(--color-secondary);
 * font-family: 'Poppins'; → font-family: var(--font-body);
 * etc.
 */