/* ============================================================
   BASE.CSS — Design Foundation & Utility System
   Career Catalyst SaaS Landing Page
   ============================================================
   This file establishes the core design tokens (colors, spacing,
   typography, shadows, transitions) and provides global resets,
   base element styles, and reusable utility classes.
   ============================================================ */


/* ------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------ */
:root {
    /* --- Primary Brand Tokens --- */
    --primary:         #2563EB;
    --primary-hover:   #1D4ED8;
    --primary-subtle:  #EFF6FF;
    --primary-border:  rgba(37, 99, 235, 0.20);
    
    /* --- Neutral Surfaces & Canvas --- */
    --bg:              #F7F8FA;
    --card-bg:         #FFFFFF;
    --surface-elevated:#FFFFFF;
    --surface-muted:   #F9FAFB;
    --surface-hover:   #F3F4F6;
    
    /* --- Typography Colors --- */
    --text:            #111827;
    --text-muted:      #64748B;
    --text-subtle:     #9CA3AF;
    --secondary:       #0F172A;
    --accent:          #2563EB;
    
    /* --- Borders --- */
    --border:          #E5E7EB;
    --border-strong:   #D1D5DB;
    --border-subtle:   #F1F5F9;
    
    /* --- Compatibility / Legacy Token Aliases --- */
    --text-primary:    #111827;
    --text-secondary:  #475569;
    --border-color:    #E5E7EB;
    --primary-color:   #2563EB;
    
    /* --- Semantic States --- */
    --success:         #16A34A;
    --success-subtle:  #F0FDF4;
    --success-border:  rgba(22, 163, 74, 0.20);
    --warning:         #D97706;
    --warning-subtle:  #FFFBEB;
    --warning-border:  rgba(217, 119, 6, 0.20);
    --danger:          #DC2626;
    --danger-subtle:   #FEF2F2;
    --danger-border:   rgba(220, 38, 38, 0.20);
    --info:            #2563EB;
    --info-subtle:     #EFF6FF;
    --info-border:     rgba(37, 99, 235, 0.20);
    
    --welcome-bg:      linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --hover-bg:        #f1f5f9;
    --completed-bg:    #f0fdf4;

    /* --- Spacing (4px / 8px scale) --- */
    --space-1:  0.25rem;  /*  4px */
    --space-2:  0.5rem;   /*  8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --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 */

    /* --- Typography — Font Families --- */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* --- Typography — Font Sizes --- */
    --text-xs:   0.75rem;    /* 12px */
    --text-sm:   0.875rem;   /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-md:   1.125rem;   /* 18px */
    --text-lg:   1.25rem;    /* 20px */
    --text-xl:   1.5rem;     /* 24px */
    --text-2xl:  1.75rem;    /* 28px */
    --text-3xl:  2rem;       /* 32px */
    --text-4xl:  2.25rem;    /* 36px */
    --text-5xl:  2.75rem;    /* 44px */
    --text-6xl:  3.25rem;    /* 52px */

    /* --- Typography — Font Weights --- */
    --font-light:     300;
    --font-regular:   400;
    --font-medium:    500;
    --font-semibold:  600;
    --font-bold:      700;
    --font-extrabold: 800;

    /* --- Shadows (Ambient elevation, zero colored glow) --- */
    --shadow-xs:  0  1px  2px  rgba(0, 0, 0, 0.05);
    --shadow-sm:  0  1px  3px  rgba(0, 0, 0, 0.07),
                  0  1px  2px -1px rgba(0, 0, 0, 0.06);
    --shadow-md:  0  4px  6px -1px rgba(0, 0, 0, 0.07),
                  0  2px  4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08),
                  0  4px  6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08),
                  0  8px 10px -6px rgba(0, 0, 0, 0.03);

    /* --- Border Radii (Reusable system tokens) --- */
    --radius-xs:   4px;
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:   10px;
    --radius-xl:   12px;
    --radius-2xl:  16px;
    --radius-full: 9999px;

    /* --- Transitions --- */
    --transition-fast: all 150ms ease;
    --transition-base: all 250ms ease;
    --transition-slow: all 400ms ease;
}


/* ------------------------------------------------------------
   2. GLOBAL RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: clip;
}

body {
    background-color: var(--bg);
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ------------------------------------------------------------
   3. BASE ELEMENT STYLES
   ------------------------------------------------------------ */

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-top: 0;
}

/* --- Links --- */
a {
    color: var(--primary);
    transition: var(--transition-base);
    text-decoration: none;
}

a:hover {
    color: #1e40af;
}

*:focus-visible {
    outline: 3px solid var(--primary-border);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    background: var(--secondary);
    color: #ffffff;
    font-weight: 600;
    transform: translateY(-180%);
    transition: transform 150ms ease;
}

.skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.skip-target {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Paragraphs --- */
p {
    margin-bottom: 1rem;
    margin-top: 0;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
}


/* ------------------------------------------------------------
   4. UTILITY CLASSES
   ------------------------------------------------------------ */

/* --- Section Spacing --- */
.section-padding {
    padding: 6rem 0;
}

/* --- Section Title --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    display: none !important;
}

/* Center the underline when inside a .text-center parent */
.text-center .section-title::after {
    display: none !important;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Solid brand color. Gradient text reads as generated marketing, so this stays a plain color. */
.text-gradient {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--primary);
}

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

.rounded-4 {
    border-radius: 10px !important;
}

.rounded-5 {
    border-radius: 12px !important;
}

/* ------------------------------------------------------------
   1.1. DARK MODE DEFINITION (Senior Craftsmanship Elevation & Anti-Glaze)
   ------------------------------------------------------------ */
html[data-theme="dark"] {
    /* Layered Surfaces (Elevation System) */
    --bg:                    #09090B; /* Deepest canvas: 0dp */
    --card-bg:               #121216; /* Cards & surfaces: Raised 1dp */
    --card-surface-muted:    #18181E; /* Sub-surfaces & muted containers */
    --card-surface-elevated: #202028; /* Modals, popovers & floating menus: Raised 3dp */
    --surface-muted:         #18181E;
    --surface-hover:         #18181E; /* Hovered surfaces & inputs: Raised 2dp */
    --surface-elevated:      #202028;

    /* Anti-Glaze Text Hierarchy */
    --text:                  #CBD5E1; /* Comfortable reading body contrast */
    --text-heading:          #F8FAFC; /* High emphasis anti-glaze headings */
    --text-muted:            #94A3B8; /* Gentle secondary metadata & subtitles */
    --text-subtle:           #64748B; /* Tertiary subtle & disabled hints */
    --secondary:             #CBD5E1;

    /* Crisp Precision Borders */
    --border:                rgba(255, 255, 255, 0.08);
    --border-strong:         rgba(255, 255, 255, 0.14);
    --border-subtle:         rgba(255, 255, 255, 0.05);
    --border-color:          rgba(255, 255, 255, 0.08);

    /* Form Controls & Inputs */
    --input-bg:              #18181E;

    /* Accents & Brand */
    --primary:               #3B82F6;
    --primary-hover:         #2563EB;
    --accent:                #3B82F6;
    --navbar-bg:             rgba(18, 18, 22, 0.85);
    --welcome-bg:            linear-gradient(135deg, #121216 0%, #09090B 100%);
    --hover-bg:              #18181E;
    --completed-bg:          rgba(34, 197, 94, 0.12);
    --primary-subtle:        rgba(59, 130, 246, 0.15);
    --primary-border:        rgba(59, 130, 246, 0.30);

    /* Compatibility / Legacy Token Aliases */
    --text-primary:          #F8FAFC;
    --text-secondary:        #CBD5E1;
    --primary-color:         #3B82F6;

    /* Bootstrap 5 system variable mapping in dark mode */
    --bs-body-color:         #CBD5E1;
    --bs-body-color-rgb:     203, 213, 225;
    --bs-body-bg:            #09090B;
    --bs-body-bg-rgb:        9, 9, 11;
    --bs-secondary-color:    #CBD5E1;
    --bs-secondary-color-rgb: 203, 213, 225;
    --bs-tertiary-color:     #94A3B8;
    --bs-tertiary-color-rgb: 148, 163, 184;
    --bs-emphasis-color:     #F8FAFC;
    --bs-emphasis-color-rgb: 248, 250, 252;
    --bs-border-color:       rgba(255, 255, 255, 0.08);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
    --bs-secondary-bg:       #18181E;
    --bs-secondary-bg-rgb:   24, 24, 30;
    --bs-tertiary-bg:        #202028;
    --bs-tertiary-bg-rgb:    32, 32, 40;
    --bs-link-color:         #3B82F6;
    --bs-link-hover-color:   #60A5FA;
}

html[data-theme="dark"] body {
    background-color: var(--bg);
    color: var(--text);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3,
html[data-theme="dark"] .h4,
html[data-theme="dark"] .h5,
html[data-theme="dark"] .h6 {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .card {
    background-color: var(--card-bg) !important;
    border-color: var(--border) !important;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset, 0 4px 16px rgba(0, 0, 0, 0.35);
    color: var(--text);
}

html[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

html[data-theme="dark"] .bg-light {
    background-color: #18181E !important;
}

/* Anti-Glaze Text Hierarchy */
html[data-theme="dark"] .text-body {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .text-body-secondary {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .text-body-tertiary {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .text-body-emphasis {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .text-secondary {
    color: var(--secondary) !important;
}

html[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] .border {
    border-color: var(--border) !important;
}

html[data-theme="dark"] .border-subtle {
    border-color: var(--border) !important;
}

html[data-theme="dark"] .text-dark {
    color: var(--text) !important;
}

html[data-theme="dark"] .text-dark-emphasis {
    color: #F8FAFC !important;
}

/* Accessible High-Contrast Semantic Text in Dark Mode */
html[data-theme="dark"] .text-primary {
    color: #60A5FA !important;
}

html[data-theme="dark"] .text-success {
    color: #4ADE80 !important;
}

html[data-theme="dark"] .text-warning {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .text-danger {
    color: #F87171 !important;
}

html[data-theme="dark"] .text-info {
    color: #38BDF8 !important;
}

/* Subtle Semantic Badges & Backgrounds in Dark Mode */
html[data-theme="dark"] .bg-primary-subtle {
    background-color: rgba(59, 130, 246, 0.15) !important;
}

html[data-theme="dark"] .bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.15) !important;
}

html[data-theme="dark"] .bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

html[data-theme="dark"] .bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.15) !important;
}

html[data-theme="dark"] .bg-secondary-subtle {
    background-color: rgba(156, 163, 175, 0.15) !important;
}

html[data-theme="dark"] .border-primary-subtle {
    border-color: rgba(59, 130, 246, 0.28) !important;
}

html[data-theme="dark"] .border-success-subtle {
    border-color: rgba(34, 197, 94, 0.28) !important;
}

html[data-theme="dark"] .border-warning-subtle {
    border-color: rgba(245, 158, 11, 0.28) !important;
}

html[data-theme="dark"] .border-danger-subtle {
    border-color: rgba(239, 68, 68, 0.28) !important;
}

/* Dark Mode Theme-Aware Alerts */
html[data-theme="dark"] .alert-light {
    background-color: #151519 !important;
    border-color: #27272A !important;
    color: #D1D5DB !important;
}

html[data-theme="dark"] .alert-light .text-secondary {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .alert-light ul,
html[data-theme="dark"] .alert-light li {
    color: #D1D5DB !important;
}

html[data-theme="dark"] .alert-info {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #93C5FD !important;
}

html[data-theme="dark"] .alert-success {
    background-color: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
    color: #86EFAC !important;
}

html[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
    color: #FDE68A !important;
}

html[data-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #FCA5A5 !important;
}

/* Soft-Glow Badges in Dark Mode */
html[data-theme="dark"] .badge.bg-primary.bg-opacity-10,
html[data-theme="dark"] .badge.bg-primary {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .badge.bg-success.bg-opacity-10,
html[data-theme="dark"] .badge.bg-success {
    background-color: rgba(34, 197, 94, 0.18) !important;
    color: #4ade80 !important;
}

html[data-theme="dark"] .badge.bg-warning.bg-opacity-10,
html[data-theme="dark"] .badge.bg-warning {
    background-color: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .badge.bg-danger.bg-opacity-10,
html[data-theme="dark"] .badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .badge.bg-secondary.bg-opacity-10,
html[data-theme="dark"] .badge.bg-secondary {
    background-color: rgba(148, 163, 184, 0.18) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

/* Buttons in Dark Mode */
html[data-theme="dark"] .btn-back {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #27272A;
    color: #F8FAFC;
}

html[data-theme="dark"] .btn-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #3F3F46;
}

html[data-theme="dark"] .keyword-chip {
    background-color: #151519;
    border-color: #27272A;
    color: #D1D5DB;
}

html[data-theme="dark"] .keyword-chip:hover {
    background-color: #3B82F6;
    border-color: #3B82F6;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-outline-primary {
    color: #60a5fa;
    border-color: #3b82f6;
}

html[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

html[data-theme="dark"] .btn-outline-success {
    color: #4ade80;
    border-color: #22c55e;
}

html[data-theme="dark"] .btn-outline-success:hover {
    background-color: #22c55e;
    color: #ffffff;
}

html[data-theme="dark"] .list-group-item {
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .accordion-item {
    background-color: var(--card-bg) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .accordion-button {
    background-color: var(--card-bg) !important;
    color: var(--secondary) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .accordion-body {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--text) !important;
}

html[data-theme="dark"] .option-label {
    border-color: var(--border) !important;
}

html[data-theme="dark"] .option-label:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .table {
    color: #CBD5E1 !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .table th {
    background-color: #18181E !important;
    color: #94A3B8 !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .table td {
    background-color: var(--card-bg) !important;
    color: #CBD5E1 !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .table-light,
html[data-theme="dark"] .table-light th,
html[data-theme="dark"] .table-light td,
html[data-theme="dark"] .thead-light,
html[data-theme="dark"] thead.table-light,
html[data-theme="dark"] thead.table-light th {
    background-color: #18181E !important;
    color: #F8FAFC !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .table-hover tbody tr:hover td {
    background-color: #18181E !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #18181E !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: #18181E !important;
    color: #F8FAFC !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22) !important;
    outline: none !important;
}

html[data-theme="dark"] .form-control:disabled,
html[data-theme="dark"] .form-select:disabled {
    background-color: #121216 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #64748B !important;
}

html[data-theme="dark"] .form-label,
html[data-theme="dark"] label {
    color: #D1D5DB !important;
}

/* Password Visibility Toggle Button in Dark Mode */
html[data-theme="dark"] .password-toggle-btn {
    color: #9CA3AF !important;
}

html[data-theme="dark"] .password-toggle-btn:hover {
    color: #F8FAFC !important;
}

/* File Input & File Selector Button in Dark Mode */
html[data-theme="dark"] .form-control::file-selector-button,
html[data-theme="dark"] input[type="file"]::file-selector-button,
html[data-theme="dark"] input[type="file"]::-webkit-file-upload-button {
    background-color: #18181C !important;
    color: #F8FAFC !important;
    border-color: #3F3F46 !important;
    border-inline-end-width: 1px !important;
    border-inline-end-style: solid !important;
    border-inline-end-color: #3F3F46 !important;
}

html[data-theme="dark"] .form-control:hover:not(:disabled):not([readonly])::file-selector-button,
html[data-theme="dark"] input[type="file"]:hover:not(:disabled):not([readonly])::file-selector-button,
html[data-theme="dark"] input[type="file"]:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: #202028 !important;
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Global Dark Mode Contrast Fixes */
html[data-theme="dark"] .text-dark:not(.badge),
html[data-theme="dark"] .text-dark-custom {
    color: var(--secondary) !important;
}

html[data-theme="dark"] a:hover {
    color: #60a5fa !important;
}

html[data-theme="dark"] .btn-outline-dark {
    color: var(--secondary) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .btn-outline-dark:hover {
    background-color: var(--secondary) !important;
    color: var(--bg) !important;
}

html[data-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom-color: var(--border) !important;
}

html[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

html[data-theme="dark"] .modal-content {
    background-color: #202028 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 20px 48px -10px rgba(0, 0, 0, 0.75) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    background-color: #18181E !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .modal-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

html[data-theme="dark"] .dropdown-menu {
    background-color: #202028 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.08) inset, 0 12px 32px -4px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] .dropdown-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background-color: #2a2a34 !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .form-text,
html[data-theme="dark"] .help-block,
html[data-theme="dark"] .helptext,
html[data-theme="dark"] .helptext li,
html[data-theme="dark"] ul.text-muted,
html[data-theme="dark"] ul.text-muted li,
html[data-theme="dark"] small.text-muted {
    color: var(--text-muted) !important;
}

.hover-bg {
    transition: background-color 0.2s ease;
}
.hover-bg:hover {
    background-color: var(--hover-bg) !important;
}

/* Password Toggle Visibility Styling */
.password-toggle-wrapper {
    width: 100%;
}

.password-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--primary) !important;
    transform: translateY(-50%) scale(1.15) !important;
}

html[data-theme="dark"] .password-toggle-btn {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] .password-toggle-btn:hover {
    color: var(--primary) !important;
}

/* ============================================================
   GLOBAL MOBILE RESPONSIVENESS SUITE
   ============================================================ */
@media (max-width: 991.98px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .section-padding {
        padding: 4rem 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* Responsive Typography */
    h1, .h1 {
        font-size: 2rem !important;
    }
    h2, .h2 {
        font-size: 1.65rem !important;
    }
    h3, .h3 {
        font-size: 1.35rem !important;
    }
    
    .section-title {
        font-size: 1.95rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }

    /* Cards & Form Padding on Mobile */
    .card-body.p-5 {
        padding: 1.5rem !important;
    }
    .card-body.p-4 {
        padding: 1.25rem !important;
    }
    
    /* Tables horizontal scrolling protection */
    .table-responsive {
        border-radius: var(--radius-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0 !important;
    }
    
    .card-body.p-5, .card-body.p-4 {
        padding: 1.15rem !important;
    }
    
    /* Stat Cards on Small Mobile */
    .stat-card {
        padding: 1rem 0.5rem !important;
    }
    .stat-card .stat-number {
        font-size: 1.2rem !important;
    }
    .stat-card .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    .stat-card .stat-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 2.15rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
    }
    .hero-description {
        font-size: 1rem !important;
    }
}



