/* ============================================================================
   PROFESSIONAL DARK THEME
   Navy Blue, German Grey, Metal Grey with High Contrast White Text
   ============================================================================ */

:root {
    /* Primary Brand Colors - Dark Blue */
    --primary: #001f3f;
    --primary-hover: #003366;
    --primary-dark: #001a33;
    --primary-light: rgba(0, 31, 63, 0.1);
    
    /* Secondary Colors - Dark Blue */
    --secondary: #001f3f;
    --secondary-hover: #003366;
    --secondary-dark: #001a33;
    --secondary-light: rgba(0, 31, 63, 0.1);
    
    /* Accent Colors - Dark Blue */
    --accent: #001f3f;
    --accent-hover: #003366;
    --accent-light: rgba(0, 31, 63, 0.1);
    
    /* Dark Backgrounds - Pure Black */
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-tertiary: #001f3f;
    --bg-elevated: #000000;
    --bg-card: #001f3f;
    
    /* High Contrast White Text */
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: #ffffff;
    --text-muted: #ffffff;
    --text-inverse: #000000;
    
    /* Borders - White */
    --border-color: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(255, 255, 255, 0.4);
    --border-accent: rgba(255, 255, 255, 0.3);
    
    /* Shadows - Subtle Dark Shadows */
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 20px rgba(0, 31, 63, 0.3);
    --shadow-glow-grey: 0 0 20px rgba(255, 255, 255, 0.2);
    
    /* Status Colors - Dark Blue (no green, orange, red) */
    --success: #001f3f;
    --success-light: rgba(0, 31, 63, 0.1);
    --warning: #001f3f;
    --warning-light: rgba(0, 31, 63, 0.1);
    --error: #001f3f;
    --error-light: rgba(0, 31, 63, 0.1);
    --info: #001f3f;
    --info-light: rgba(0, 31, 63, 0.1);
    
    /* Professional Gradients - Dark Blue */
    --gradient-primary: linear-gradient(135deg, #001f3f 0%, #002b5c 100%);
    --gradient-secondary: linear-gradient(135deg, #001f3f 0%, #001a33 100%);
    --gradient-accent: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #001f3f 50%, #003366 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(0, 31, 63, 0.1) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(0, 51, 102, 0.05) 0px, transparent 50%);
    
    /* Glass Effect - Dark Blue Glass */
    --glass-bg: rgba(0, 31, 63, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    
    /* Overlays */
    --overlay-dark: rgba(0, 0, 0, 0.95);
    --overlay-light: rgba(0, 31, 63, 0.8);
    
}

/* ============================================================================
   LIGHT THEME - Modern & Clean
   ============================================================================ */

.light-theme,
.light-theme:root,
.light-mode,
.light-mode:root {
    /* Primary Brand Colors - Dark Blue */
    --primary: #001f3f;
    --primary-hover: #003366;
    --primary-dark: #001a33;
    --primary-light: rgba(0, 31, 63, 0.1);
    
    /* Secondary Colors - Dark Blue */
    --secondary: #001f3f;
    --secondary-hover: #003366;
    --secondary-dark: #001a33;
    --secondary-light: rgba(0, 31, 63, 0.1);
    
    /* Accent Colors - Dark Blue */
    --accent: #001f3f;
    --accent-hover: #003366;
    --accent-light: rgba(0, 31, 63, 0.1);
    
    /* Light Backgrounds - Pure White */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    
    /* Black Text on White Background */
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-tertiary: #000000;
    --text-muted: #000000;
    --text-inverse: #ffffff;
    
    /* Borders - Black for Light Theme */
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.2);
    --border-accent: rgba(0, 0, 0, 0.3);
    
    /* Shadows - Lighter for Light Theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow-blue: 0 0 20px rgba(0, 31, 63, 0.15);
    --shadow-glow-grey: 0 0 20px rgba(0, 0, 0, 0.1);
    
    /* Status Colors - Same but with light backgrounds */
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.1);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.1);
    --error: #dc2626;
    --error-light: rgba(220, 38, 38, 0.1);
    --info: #2563eb;
    --info-light: rgba(37, 99, 235, 0.1);
    
    /* Light Theme Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #e0e7ff 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(156, 163, 175, 0.05) 0px, transparent 50%);
    
    /* Glass Effect - Light Glass */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-blur: blur(12px);
    
    /* Overlays */
    --overlay-dark: rgba(255, 255, 255, 0.95);
    --overlay-light: rgba(249, 250, 251, 0.9);
}

body.light-theme,
body.light-mode {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

html.light-theme,
html.light-mode {
    background-color: var(--bg-primary);
}


/* ============================================================================
   BASE STYLES - PREMIUM DARK DESIGN
   ============================================================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-primary);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

*::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

body {
    background-color: var(--bg-primary) !important;
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* White text for dark backgrounds (default) */
* {
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

p, span, div, td, th, li {
    color: #ffffff !important;
}

/* Black text for light/white backgrounds */
.bg-white, .bg-light, [style*="background: white"], [style*="background: #fff"],
[style*="background-color: white"], [style*="background-color: #fff"],
[style*="background-color: rgb(255, 255, 255)"] {
    color: #000000 !important;
}

.bg-white *, .bg-light *, 
[style*="background: white"] *, 
[style*="background: #fff"] *,
[style*="background-color: white"] *,
[style*="background-color: #fff"] *,
[style*="background-color: rgb(255, 255, 255)"] * {
    color: #000000 !important;
}

.text-muted {
    color: #a3a3a3 !important;
}

.text-secondary {
    color: #e5e5e5 !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(156, 163, 175, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   NAVBAR STYLES - GLASS EFFECT
   ============================================================================ */

.navbar-modern {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-md) !important;
}

.navbar-modern .nav-link {
    color: var(--text-secondary) !important;
    position: relative;
    overflow: hidden;
}

.navbar-modern .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    background-color: var(--primary-light) !important;
    color: var(--primary-hover) !important;
}

.navbar-modern .nav-link:hover::after,
.navbar-modern .nav-link.active::after {
    width: 80%;
}

.navbar-brand-text {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
    filter: drop-shadow(0 2px 8px rgba(96, 165, 250, 0.3));
    transition: all 0.3s ease;
}

.navbar-brand-text:hover {
    filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.6));
    transform: scale(1.02);
}

.navbar-brand-text span {
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   CARD STYLES - GLASS CARDS WITH GLOW
   ============================================================================ */

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #ffffff !important;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow-purple);
    border-color: var(--border-hover);
}

.card-body {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.card-title {
    color: #ffffff !important;
}
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-secondary);
}

/* ============================================================================
   BUTTON STYLES - PREMIUM GRADIENT BUTTONS
   ============================================================================ */

.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

/* ============================================================================
   FORM STYLES - MODERN DARK FORMS
   ============================================================================ */

.form-control,
.form-select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-glow-purple);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

textarea.form-control {
    min-height: 120px;
}

/* ============================================================================
   HERO SECTION - ANIMATED GRADIENT
   ============================================================================ */

.hero-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.15;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5%) translateY(5%); }
    50% { transform: translateX(-5%) translateY(5%); }
    75% { transform: translateX(5%) translateY(-5%); }
}

/* ============================================================================
   STATS & METRICS - GLOWING CARDS
   ============================================================================ */

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-purple);
}

.stat-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================================
   BADGES & TAGS - MODERN PILLS
   ============================================================================ */

.badge {
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid var(--border-hover);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

/* ============================================================================
   FOOTER - ELEGANT DARK FOOTER
   ============================================================================ */

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

footer a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-muted {
    color: var(--text-tertiary) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border {
    border-color: var(--border-color) !important;
}

.bg-dark {
    background-color: var(--bg-secondary) !important;
}

.bg-darker {
    background-color: var(--bg-primary) !important;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

/* ============================================================================
   ANIMATIONS & EFFECTS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: var(--shadow-glow-purple);
    }
    50% {
        box-shadow: var(--shadow-glow-cyan);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .btn {
        padding: 10px 24px;
    }
    
    /* Card improvements for mobile */
    .card {
        margin-bottom: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .card-text {
        font-size: 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card-img-top {
        height: 180px !important;
    }
    
    /* Reduce hover effects on mobile */
    .card:hover {
        transform: none !important;
    }
    
    /* Badge spacing */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    /* Enhanced mobile card styles */
    .card {
        border-radius: 12px !important;
        margin-bottom: 1.25rem !important;
    }
    
    .card-body {
        padding: 0.875rem !important;
    }
    
    .card-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .card-text {
        font-size: 0.813rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.5 !important;
    }
    
    .card-img-top {
        height: 160px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .card-footer {
        padding: 0.75rem !important;
        font-size: 0.813rem !important;
    }
    
    /* Better button sizing in cards */
    .card-footer .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.813rem !important;
    }
    
    /* Improve badge display */
    .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    /* Smaller text for metadata */
    small, .text-muted {
        font-size: 0.75rem !important;
    }
}
