/* ======================================
   CUTTING-EDGE DESIGN SYSTEM & CSS CUSTOM PROPERTIES
   ====================================== */

:root {
    /* Primary Theme Colors */
    --primary: #3B82F6;
    --primary-dark: #1E40AF;
    --primary-light: #93C5FD;
    --secondary: #64748B;
    --accent: #8B5CF6;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Advanced Animation Colors */
    --neon-blue: #00D4FF;
    --neon-purple: #B644FF;
    --neon-pink: #FF44B6;
    --neon-green: #44FF88;
    --neon-gold: #FFD700;
    --particle-glow: rgba(59, 130, 246, 0.8);
    --particle-trail: rgba(139, 92, 246, 0.4);
    
    /* Typography - System Fonts Only */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* System Typography */
    --font-en-header: Georgia, 'Times New Roman', Times, serif;
    --font-en-body: Georgia, 'Times New Roman', Times, serif;
    --font-en-footer: Georgia, 'Times New Roman', Times, serif;
    
    /* System Khmer Typography */
    --font-kh-header: 'Khmer OS Muol Light', sans-serif;
    --font-kh-body: 'Khmer OS Siemreap', sans-serif;
    --font-kh-footer: 'Khmer OS Siemreap', sans-serif;
    
    /* Active Language Fonts (Default: English) */
    --font-header: var(--font-en-header);
    --font-body: var(--font-en-body);
    --font-footer: var(--font-en-footer);
    
    /* Spacing System */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 6rem;     /* 96px */
    
    /* Border Radius */
    --radius-xs: 0.25rem;  /* 4px */
    --radius-sm: 0.5rem;   /* 8px */
    --radius-md: 0.75rem;  /* 12px */
    --radius-lg: 1rem;     /* 16px */
    --radius-xl: 1.25rem;  /* 20px */
    --radius-2xl: 1.5rem;  /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Z-Index Scale - COMPREHENSIVE HIERARCHY */
--z-background: -100;
--z-parallax: -50;
--z-animations: 1;
--z-content: 100;
--z-control-panel: 9999;
--z-navigation: 10000;
--z-navigation-elements: 10001;
--z-dropdown: 10002;
--z-modal: 15000;
--z-modal-backdrop: 14999;
--z-tooltip: 10004;
--z-cursor: 10005;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-popover: 1060;
    --z-toast: 1080;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slowest: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animation Easing */
    --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-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ======================================
   ENHANCED RESET AND BASE STYLES
   ====================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Use system fonts only - no external imports */

/* --- FINAL CLEAN DASHBOARD LAYOUT (REPLACES ALL PREVIOUS RULES) --- */

/* Remove all body horizontal overflow issues */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background-color: #f5f7fa;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-700);
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

.dashboard-container {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Dashboard Navigation - AUTO-HIDE FUNCTIONALITY */
.dashboard-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    z-index: var(--z-navigation) !important; /* Navigation layer */
    background: rgba(255,255,255,0.1) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: translateZ(0) !important;
    overflow: visible !important;
    pointer-events: auto !important; /* Ensure navigation is interactive */
    
    /* Auto-hide transitions */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
}

.dashboard-nav.nav-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}

.dashboard-nav.nav-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Control Panel - AUTO-HIDE FUNCTIONALITY */
.control-panel {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    width: 100% !important;
    height: 100px !important;
    z-index: var(--z-control-panel) !important; /* Control panel layer */
    background: rgba(0,0,0,0.3) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    padding: 0 30px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    pointer-events: auto !important; /* Ensure control panel is interactive */
    
    /* Auto-hide transitions */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
}

.control-panel.nav-hidden {
    transform: translateY(-180px) !important; /* Hide completely above nav */
    opacity: 0 !important;
}

.control-panel.nav-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Dashboard Main Content - DYNAMIC MARGIN ADJUSTMENT */
.dashboard-main {
    margin-top: 180px !important; /* 80px nav + 100px control-panel */
    padding: 30px !important;
    min-height: calc(100vh - 180px) !important;
    position: relative !important;
    z-index: var(--z-content) !important; /* Content layer */
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    pointer-events: auto !important; /* Ensure content is interactive */
    
    /* Smooth transition for margin changes */
    transition: margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-main.nav-hidden {
    margin-top: 0px !important;
    min-height: 100vh !important;
}

.dashboard-main.nav-visible {
    margin-top: 180px !important;
    min-height: calc(100vh - 180px) !important;
}

/* Responsive Design - MAINTAIN AUTO-HIDE BEHAVIOR */
@media (max-width: 968px) {
    .dashboard-nav {
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        padding: 0 20px !important;
    }
    
    .control-panel {
        top: 70px !important;
        height: 90px !important;
        padding: 0 20px !important;
        gap: 20px !important;
    }
    
    .control-panel.nav-hidden {
        transform: translateY(-160px) !important; /* 70px nav + 90px control */
    }
    
    .dashboard-main {
        margin-top: 160px !important; /* 70px nav + 90px control-panel */
        padding: 20px !important;
        min-height: calc(100vh - 160px) !important;
    }
    
    .dashboard-main.nav-hidden {
        margin-top: 0px !important;
        min-height: 100vh !important;
    }
    
    .dashboard-main.nav-visible {
        margin-top: 160px !important;
        min-height: calc(100vh - 160px) !important;
    }
}

@media (max-width: 600px) {
    .dashboard-nav {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 0 15px !important;
    }
    
    .control-panel {
        top: 60px !important;
        height: 80px !important;
        padding: 0 15px !important;
        gap: 15px !important;
    }
    
    .control-panel.nav-hidden {
        transform: translateY(-140px) !important; /* 60px nav + 80px control */
    }
    
    .dashboard-main {
        margin-top: 140px !important; /* 60px nav + 80px control-panel */
        padding: 15px !important;
        min-height: calc(100vh - 140px) !important;
    }
    
    .dashboard-main.nav-hidden {
        margin-top: 0px !important;
        min-height: 100vh !important;
    }
    
    .dashboard-main.nav-visible {
        margin-top: 140px !important;
        min-height: calc(100vh - 140px) !important;
    }
}

/* Khmer Language Adjustments - AUTO-HIDE BEHAVIOR */
[data-lang="kh"] .control-panel {
    height: 120px !important;
    gap: 40px !important;
}

[data-lang="kh"] .control-panel.nav-hidden {
    transform: translateY(-200px) !important; /* 80px nav + 120px control */
}

[data-lang="kh"] .dashboard-main {
    margin-top: 200px !important; /* 80px nav + 120px control-panel */
    min-height: calc(100vh - 200px) !important;
}

[data-lang="kh"] .dashboard-main.nav-hidden {
    margin-top: 0px !important;
    min-height: 100vh !important;
}

[data-lang="kh"] .dashboard-main.nav-visible {
    margin-top: 200px !important;
    min-height: calc(100vh - 200px) !important;
}

@media (max-width: 968px) {
    [data-lang="kh"] .control-panel {
        height: 110px !important;
        gap: 25px !important;
    }
    
    [data-lang="kh"] .control-panel.nav-hidden {
        transform: translateY(-180px) !important; /* 70px nav + 110px control */
    }
    
    [data-lang="kh"] .dashboard-main {
        margin-top: 180px !important; /* 70px nav + 110px control-panel */
        min-height: calc(100vh - 180px) !important;
    }
    
    [data-lang="kh"] .dashboard-main.nav-hidden {
        margin-top: 0px !important;
        min-height: 100vh !important;
    }
    
    [data-lang="kh"] .dashboard-main.nav-visible {
        margin-top: 180px !important;
        min-height: calc(100vh - 180px) !important;
    }
}

@media (max-width: 600px) {
    [data-lang="kh"] .control-panel {
        height: 100px !important;
        gap: 20px !important;
    }
    
    [data-lang="kh"] .control-panel.nav-hidden {
        transform: translateY(-160px) !important; /* 60px nav + 100px control */
    }
    
    [data-lang="kh"] .dashboard-main {
        margin-top: 160px !important; /* 60px nav + 100px control-panel */
        min-height: calc(100vh - 160px) !important;
    }
    
    [data-lang="kh"] .dashboard-main.nav-hidden {
        margin-top: 0px !important;
        min-height: 100vh !important;
    }
    
    [data-lang="kh"] .dashboard-main.nav-visible {
        margin-top: 160px !important;
        min-height: calc(100vh - 160px) !important;
    }
}

/* Hover Zone - Invisible area at top to trigger nav reveal */
.nav-hover-zone {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    z-index: var(--z-content) !important;
    background: transparent !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Horizontal Scrollbar Styling for Control Panel */
.control-panel::-webkit-scrollbar {
    height: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Navigation Components */
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-left .logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.current-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.9);
}

.current-time .date {
    font-size: 0.85rem;
    font-weight: 500;
}

.current-time .time {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.nav-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.global-search {
    position: relative;
    width: 100%;
}

.global-search input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.global-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.global-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.nav-right {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Control Panel Components */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    min-width: 200px;
}

.control-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-select {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 180px;
}

.control-select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.filter-btn.good.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
}

.filter-btn.warning.active {
    background: rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
    color: #ff9800;
}

.filter-btn.critical.active {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.date-range span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.quick-actions {
    display: flex;
    gap: 8px;
}

.quick-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

/* --- END OF DASHBOARD LAYOUT --- */

/* ======================================
   ENHANCED ACCESSIBILITY & FOCUS STATES
   ====================================== */

/* Focus visible for better accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove default focus styles when not using keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #1E40AF;
        --primary-dark: #1E3A8A;
    }
}

/* Animated Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.1),
        rgba(139, 92, 246, 0.1),
        rgba(37, 99, 235, 0.1),
        rgba(99, 102, 241, 0.1)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: var(--z-background);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======================================
   ADVANCED PARTICLE SYSTEM
   ====================================== */

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-animations) !important; /* Animation layer */
    overflow: hidden;
    perspective: 1000px;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    filter: blur(0.5px);
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

/* Enhanced Particle System - Multiple Layers */
.particle:nth-child(1) { 
    width: 6px; height: 6px;
    left: 10%; 
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    animation: floatGlow 15s linear infinite, twinkle 3s ease-in-out infinite;
    animation-delay: 0s, 0s;
    box-shadow: 0 0 20px var(--particle-glow);
}

.particle:nth-child(2) { 
    width: 4px; height: 4px;
    left: 20%; 
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    animation: floatGlow 18s linear infinite, pulse 2.5s ease-in-out infinite;
    animation-delay: -2s, -0.5s;
    box-shadow: 0 0 15px var(--particle-trail);
}

.particle:nth-child(3) { 
    width: 8px; height: 8px;
    left: 30%; 
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    animation: floatGlow 22s linear infinite, morphing 4s ease-in-out infinite;
    animation-delay: -4s, -1s;
    box-shadow: 0 0 25px rgba(255, 68, 182, 0.6);
}

.particle:nth-child(4) { 
    width: 3px; height: 3px;
    left: 40%; 
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    animation: floatGlow 16s linear infinite, spiral 6s ease-in-out infinite;
    animation-delay: -6s, -1.5s;
    box-shadow: 0 0 18px rgba(68, 255, 136, 0.5);
}

.particle:nth-child(5) { 
    width: 5px; height: 5px;
    left: 50%; 
    background: radial-gradient(circle, var(--neon-gold) 0%, transparent 70%);
    animation: floatGlow 20s linear infinite, bounce 3.5s ease-in-out infinite;
    animation-delay: -8s, -2s;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.7);
}

.particle:nth-child(6) { 
    width: 7px; height: 7px;
    left: 60%; 
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    animation: floatGlow 14s linear infinite, wave 5s ease-in-out infinite;
    animation-delay: -10s, -2.5s;
    box-shadow: 0 0 30px var(--particle-glow);
}

.particle:nth-child(7) { 
    width: 4px; height: 4px;
    left: 70%; 
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    animation: floatGlow 19s linear infinite, zigzag 4.5s ease-in-out infinite;
    animation-delay: -12s, -3s;
    box-shadow: 0 0 16px var(--particle-trail);
}

.particle:nth-child(8) { 
    width: 9px; height: 9px;
    left: 80%; 
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    animation: floatGlow 17s linear infinite, rotate3d 7s linear infinite;
    animation-delay: -14s, -3.5s;
    box-shadow: 0 0 35px rgba(255, 68, 182, 0.8);
}

.particle:nth-child(9) { 
    width: 6px; height: 6px;
    left: 90%; 
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    animation: floatGlow 21s linear infinite, expand 3s ease-in-out infinite;
    animation-delay: -16s, -4s;
    box-shadow: 0 0 28px rgba(68, 255, 136, 0.6);
}

.particle:nth-child(10) { 
    width: 2px; height: 2px;
    left: 15%; 
    background: radial-gradient(circle, var(--neon-gold) 0%, transparent 70%);
    animation: floatGlow 25s linear infinite, flicker 2s ease-in-out infinite;
    animation-delay: -18s, -4.5s;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.particle:nth-child(11) { 
    width: 5px; height: 5px;
    left: 25%; 
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    animation: floatGlow 23s linear infinite, drift 8s ease-in-out infinite;
    animation-delay: -20s, -5s;
    box-shadow: 0 0 20px var(--particle-glow);
}

.particle:nth-child(12) { 
    width: 7px; height: 7px;
    left: 75%; 
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    animation: floatGlow 26s linear infinite, orbit 10s linear infinite;
    animation-delay: -22s, -5.5s;
    box-shadow: 0 0 25px var(--particle-trail);
}

/* Advanced Float Animation */
@keyframes floatGlow {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(50px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(-30px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Advanced Particle Animations */
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

@keyframes morphing {
    0%, 100% { border-radius: 50%; transform: rotate(0deg); }
    25% { border-radius: 30%; transform: rotate(90deg); }
    50% { border-radius: 10%; transform: rotate(180deg); }
    75% { border-radius: 40%; transform: rotate(270deg); }
}

@keyframes spiral {
    0% { transform: rotate(0deg) translateX(0px) scale(1); }
    25% { transform: rotate(90deg) translateX(20px) scale(1.2); }
    50% { transform: rotate(180deg) translateX(0px) scale(0.8); }
    75% { transform: rotate(270deg) translateX(-20px) scale(1.1); }
    100% { transform: rotate(360deg) translateX(0px) scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes wave {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(20px) rotate(10deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(-20px) rotate(-10deg); }
}

@keyframes zigzag {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(15px); }
    50% { transform: translateX(-15px); }
    75% { transform: translateX(10px); }
}

@keyframes rotate3d {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg) rotateZ(90deg); }
    50% { transform: rotateX(180deg) rotateY(180deg) rotateZ(180deg); }
    75% { transform: rotateX(270deg) rotateY(270deg) rotateZ(270deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes expand {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(2); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.1; }
}

@keyframes drift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(40px) translateY(-20px); }
    50% { transform: translateX(0) translateY(-40px); }
    75% { transform: translateX(-40px) translateY(-20px); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

/* Legacy float animation for compatibility */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Container Styles */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: var(--z-content);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    z-index: var(--z-content);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.header .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Glassmorphism Card Styles */
.auth-form, .dashboard-section {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    animation: morphIn 1s ease-out;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes morphIn {
    from {
        transform: scale(0.8) rotateY(15deg);
        opacity: 0;
        filter: blur(10px);
    }
    to {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

.auth-form::before, .dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.auth-form h2, .dashboard-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.auth-form p, .dashboard-section p {
    text-align: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Group Styles */
.form-group {
    margin-bottom: 25px;
    position: relative;
    animation: slideInLeft 0.6s ease-out;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ======================================
   CUTTING-EDGE BUTTON SYSTEM
   ====================================== */

.btn {
    /* Modern foundation */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family-base);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    
    /* Advanced visual effects */
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Performance optimizations */
    transition: all var(--transition-base);
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
}

/* Shimmer effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all var(--transition-slow);
    z-index: var(--z-content);
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

/* Advanced button states */
.btn:hover:not(:disabled):not(.loading) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn:active:not(:disabled):not(.loading) {
    transform: translateY(0) scale(0.98);
    transition-duration: 75ms;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: var(--shadow-xs) !important;
}

/* Loading state */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    z-index: var(--z-content);
}

@keyframes btnSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ======================================
   CUTTING-EDGE FORM ENHANCEMENTS
   ====================================== */

.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

/* Modern form labels with floating effect */
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
    transition: all var(--transition-base);
    transform-origin: left top;
}

/* Enhanced form inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-700);
    font-family: var(--font-family-base);
    font-size: 0.875rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-base);
    will-change: transform, border-color, background-color;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: opacity var(--transition-base);
}

/* Advanced focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(59, 130, 246, 0.15),
        0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-2px);
}

/* Validation states */
.form-group.success input {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.form-group.error input {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Modern validation messages */
.form-feedback {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-base);
}

.form-group.success .form-feedback,
.form-group.error .form-feedback {
    opacity: 1;
    transform: translateY(0);
}

.form-group.success .form-feedback {
    color: var(--success);
}

.form-group.error .form-feedback {
    color: var(--error);
}

/* ======================================
   SKELETON LOADING STATES
   ====================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeletonPulse {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    margin-bottom: var(--space-md);
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: var(--radius-full);
}

/* Factory skeleton specific styles */
.factory-skeleton-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
}

/* ======================================
   ADVANCED MICRO-INTERACTIONS
   ====================================== */

/* Hover lift effect for interactive elements */
.interactive-lift {
    transition: all var(--transition-base);
    will-change: transform, box-shadow;
}

.interactive-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Magnetic button effect */
.magnetic-btn {
    transition: all var(--transition-base);
    cursor: pointer;
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* ======================================
   BILINGUAL SYSTEM
   ====================================== */

/* Language Switching Classes */
[data-lang="en"] {
    --font-header: var(--font-en-header);
    --font-body: var(--font-en-body);
    --font-footer: var(--font-en-footer);
}

[data-lang="kh"] {
    --font-header: var(--font-kh-header);
    --font-body: var(--font-kh-body);
    --font-footer: var(--font-kh-footer);
}

/* Typography Application */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.dashboard-header h2,
.card-header h3,
.nav-logo span,
.header h1 {
    font-family: var(--font-header) !important;
}

[data-lang="kh"] h1,
[data-lang="kh"] h2, 
[data-lang="kh"] h3,
[data-lang="kh"] h4,
[data-lang="kh"] h5,
[data-lang="kh"] h6,
[data-lang="kh"] .hero-title,
[data-lang="kh"] .section-title,
[data-lang="kh"] .dashboard-header h2,
[data-lang="kh"] .card-header h3,
[data-lang="kh"] .nav-logo span,
[data-lang="kh"] .header h1 {
    font-weight: var(--font-weight-light) !important;
    font-family: var(--font-header) !important;
}

/* Body Text */
body,
p, 
span:not(.nav-logo span),
.btn,
input,
textarea,
select,
.form-group label,
.metric-label,
.stat-label,
.notification-text,
.hero-subtitle,
.section-subtitle {
    font-family: var(--font-body) !important;
}

/* Footer Text */
.landing-footer,
.footer-content,
.footer-brand p,
.link-group a,
.footer-bottom {
    font-family: var(--font-footer) !important;
}

[data-lang="kh"] .landing-footer,
[data-lang="kh"] .footer-content,
[data-lang="kh"] .footer-brand p,
[data-lang="kh"] .link-group a,
[data-lang="kh"] .footer-bottom {
    font-weight: var(--font-weight-bold) !important;
}

/* Language Toggle Button */
.language-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--white);
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-width: 90px;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.language-toggle .flag-icon {
    width: 24px;
    height: 18px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-toggle .lang-text {
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
}

.language-toggle .arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-base);
}

.language-toggle.active .arrow-icon {
    transform: rotate(180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    min-width: 140px;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
}

.language-toggle.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.language-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.language-option.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.language-option .flag-icon {
    width: 22px;
    height: 16px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Khmer Text Adjustments */
[data-lang="kh"] {
    line-height: 1.8;
}

[data-lang="kh"] .hero-title {
    line-height: 1.4;
    letter-spacing: 0.02em;
}

[data-lang="kh"] .section-title {
    line-height: 1.5;
}

[data-lang="kh"] p {
    line-height: 1.8;
    letter-spacing: 0.01em;
}

/* Text Direction Support */
[data-lang="kh"] {
    direction: ltr;
    text-align: left;
}

/* Khmer Control Panel Adjustments */
[data-lang="kh"] .control-panel {
    height: 120px !important;
    gap: 40px !important;
}

[data-lang="kh"] .control-group {
    min-width: 220px;
}

[data-lang="kh"] .dashboard-main {
    margin-top: 200px !important;
    min-height: calc(100vh - 200px) !important;
}

/* Responsive Typography for Khmer */
@media (max-width: 768px) {
    [data-lang="kh"] .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    [data-lang="kh"] .section-title {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    [data-lang="kh"] .control-panel {
        height: 140px !important;
        gap: 20px !important;
    }
    
    [data-lang="kh"] .control-group {
        min-width: 180px;
    }
    
    [data-lang="kh"] .dashboard-main {
        margin-top: 220px !important;
        min-height: calc(100vh - 220px) !important;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Form Switch Styles */
.form-switch {
    text-align: center;
    margin-top: 25px;
    animation: fadeIn 1s ease-out 0.8s both;
}

.form-switch, .form-switch a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
}

.form-switch a {
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.form-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.form-switch a:hover::after {
    width: 100%;
}

.form-switch a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Message Styles */
.message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 15px;
    font-weight: 500;
    text-align: center;
    animation: messageSlide 0.5s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

@keyframes messageSlide {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-message {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Dashboard Styles */
.dashboard-section {
    max-width: 1200px;
    margin-top: 80px;
    padding: 30px;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out 0.3s both;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2, #ff9a9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.3);
    }
}

.dashboard-content {
    display: grid;
    gap: 30px;
    animation: staggerFadeIn 1s ease-out 0.5s both;
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ff9a9e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-card h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    animation: countUp 1s ease-out 0.5s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Info Styles */
#userInfo p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 1rem;
    animation: fadeInRight 0.6s ease-out;
}

#userInfo p:nth-child(2) { animation-delay: 0.1s; }
#userInfo p:nth-child(3) { animation-delay: 0.2s; }
#userInfo p:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Activity List */
.activity-list {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.6s ease-out;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.activity-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-buttons .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-width: auto;
    animation: bounceIn 0.8s ease-out;
}

.action-buttons .btn:nth-child(2) { animation-delay: 0.1s; }
.action-buttons .btn:nth-child(3) { animation-delay: 0.2s; }
.action-buttons .btn:nth-child(4) { animation-delay: 0.3s; }

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen p {
    color: white;
    font-size: 1.1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Auth Required */
.auth-required {
    text-align: center;
    color: white;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form, .dashboard-section {
        padding: 25px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-form, .dashboard-section {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.fadeIn {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hidden {
    display: none;
}

/* Factory-specific Styles */
.compliance-overview {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.compliance-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.compliance-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.compliance-status {
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.compliance-status.compliant {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.compliance-status.warning {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.compliance-status.critical {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Factory List Styles */
.factory-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.factory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
}

.factory-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.factory-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.factory-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.factory-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
}

.factory-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    min-width: 80px;
}

.factory-status.active {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.factory-status.maintenance {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.factory-status.inspection {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.factory-status.inactive {
    color: #9e9e9e;
    background: rgba(158, 158, 158, 0.2);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* Enhanced Action Buttons for Factory Management */
.action-buttons .btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-buttons .btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #7c8def 0%, #8659b7 100%);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

/* Dashboard Header Enhancement for Factories */
.dashboard-header h2 {
    background: linear-gradient(45deg, #667eea, #764ba2, #ff9a9e, #fad0c4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: factoryGradient 6s ease-in-out infinite;
}

@keyframes factoryGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Design for Factory Elements */
@media (max-width: 768px) {
    .compliance-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .factory-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .factory-status {
        min-width: 120px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .compliance-overview {
        gap: 10px;
    }
    
    .factory-list {
        gap: 10px;
    }
    
    .compliance-item, .factory-item {
        padding: 12px;
    }
}

/* Landing Page Styles */
.landing-page {
    overflow-x: hidden;
}

/* Landing Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-navigation);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-logo img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: white;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 30px 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    z-index: var(--z-content);
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.title-line {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 5rem;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

@keyframes titlePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.6);
}

.btn-hero-secondary {
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.floating-dashboard {
    position: relative;
    z-index: var(--z-content);
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 4px;
}

.card-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-chart {
    height: 100px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.chart-bars {
    display: flex;
    gap: 8px;
    align-items: end;
    height: 80px;
}

.bar {
    width: 20px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-out;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--height); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    animation: floatIcon 8s ease-in-out infinite;
    opacity: 0.7;
}

.icon-1 { top: 10%; left: -10%; animation-delay: 0s; }
.icon-2 { top: 60%; right: -15%; animation-delay: 2s; }
.icon-3 { bottom: 30%; left: -5%; animation-delay: 4s; }
.icon-4 { top: 30%; right: 10%; animation-delay: 6s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.9; }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff9a9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 120px 30px;
    position: relative;
    z-index: var(--z-content);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    margin-bottom: 30px;
}

.icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Benefits Section */
.benefits-section {
    padding: 120px 30px;
    background: rgba(0, 0, 0, 0.2);
}

.benefits-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-text .section-title {
    text-align: left;
    margin-bottom: 60px;
}

.benefit-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    animation: slideInLeft 0.8s ease-out;
}

.benefit-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.benefit-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.stat-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.circle-progress {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#667eea 0% var(--progress, 0%), rgba(255, 255, 255, 0.1) var(--progress, 0%) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::after {
    content: '';
    width: 160px;
    height: 160px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    position: absolute;
}

.progress-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    z-index: 10;
}

.progress-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 300px;
}

.stat-bar {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    gap: 15px;
    align-items: center;
}

.bar-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.bar-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    width: 0;
    transition: width 2s ease-out;
}

.bar-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: right;
}

/* CTA Section */
.cta-section {
    padding: 120px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.6);
}

.btn-cta-secondary {
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.cta-trust {
    text-align: center;
}

.cta-trust > span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 20px;
    display: block;
}

.trust-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.landing-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 80px 30px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .title-highlight {
        font-size: 4rem;
    }
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-highlight {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .benefits-text .section-title {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-highlight {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .hero-section {
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-highlight {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Element animations on scroll */
.feature-card.animate {
    animation: fadeInUp 0.8s ease-out;
}

.benefit-item.animate {
    animation: slideInLeft 0.8s ease-out;
}

.stat-circle.animate {
    animation: fadeInUp 1s ease-out;
}

.stat-bar.animate {
    animation: slideInLeft 0.8s ease-out;
}

/* Professional Dashboard Styles - USING NEW LAYOUT ABOVE */

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-tile {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.metric-tile.warning::before {
    background: linear-gradient(180deg, #ff9800, #f57c00);
}

.metric-tile.alert::before {
    background: linear-gradient(180deg, #f44336, #d32f2f);
}

.metric-tile.info::before {
    background: linear-gradient(180deg, #2196f3, #1976d2);
}

.metric-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.metric-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-change.positive {
    color: #4caf50;
}

.metric-change.negative {
    color: #f44336;
}

.metric-change.neutral {
    color: rgba(255, 255, 255, 0.7);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
        gap: 10px;
    }
    
.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn.small {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.card-content {
    padding: 25px;
}

/* Factory Health Overview */
.factory-health {
    grid-column: 1 / -1;
}

.factory-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.factory-item-detailed {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.factory-item-detailed.good {
    border-left-color: #4caf50;
}

.factory-item-detailed.warning {
    border-left-color: #ff9800;
}

.factory-item-detailed.critical {
    border-left-color: #f44336;
}

.factory-item-detailed:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.factory-basic {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.factory-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.factory-id {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.factory-metrics {
    display: grid;
        grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.metric-item .metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-item .metric-value {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.caps-ratio {
    font-family: 'Courier New', monospace;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.good {
    background: rgba(255, 215, 0, 0.2);
    color: #B8860B;
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-weight: 600;
}

.status-badge.warning {
    background: rgba(255, 165, 0, 0.2);
    color: #FF8C00;
    border: 1px solid rgba(255, 165, 0, 0.4);
    font-weight: 600;
}

.status-badge.critical {
    background: rgba(205, 133, 63, 0.2);
    color: #A0522D;
    border: 1px solid rgba(205, 133, 63, 0.4);
    font-weight: 600;
}

/* Map Card */
.map-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item.good::before {
    background: #4caf50;
}

.legend-item.warning::before {
    background: #ff9800;
}

.legend-item.critical::before {
    background: #f44336;
}

.map-container {
    height: 300px;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    font-weight: 600;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    animation: mapPinPulse 2s infinite;
    z-index: 10;
}

.map-pin.good {
    background: #4caf50;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
}

.map-pin.warning {
    background: #ff9800;
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
}

.map-pin.critical {
    background: #f44336;
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
}

@keyframes mapPinPulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.pin-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: none;
    z-index: var(--z-tooltip);
}

.pin-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Chart Card */
.chart-toggles {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover,
.toggle-btn.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    color: white;
}

.chart-container {
    height: 250px;
}

.chart-placeholder {
    height: 100%;
    display: flex;
    position: relative;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: right;
    padding-right: 10px;
}

.chart-area {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 10px;
}

.trend-chart {
    width: 100%;
    height: 100%;
}

.chart-x-axis {
    position: absolute;
    bottom: -25px;
    left: 50px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Notifications Card */
.notification-count {
    background: #f44336;
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.notification-item.critical {
    border-left-color: #f44336;
}

.notification-item.warning {
    border-left-color: #ff9800;
}

.notification-item.info {
    border-left-color: #2196f3;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.notification-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.notification-actions {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-health {
        grid-column: 1;
    }
}

@media (max-width: 968px) {
    .dashboard-nav {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-left,
    .nav-right {
        gap: 15px;
    }
    
    .nav-center {
        margin: 0 20px;
    }
    
    .control-panel {
        padding: 0 20px;
        gap: 20px;
        height: 90px;
    }
    
    .dashboard-main {
        padding: 20px;
        margin-top: 160px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .factory-item-detailed {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .factory-metrics {
        grid-template-columns: 1fr;
    }
    
    /* Khmer adjustments for tablet */
    [data-lang="kh"] .control-panel {
        height: 110px;
        gap: 25px;
    }
    
    [data-lang="kh"] .dashboard-main {
        margin-top: 180px;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .control-group {
        align-items: stretch;
    }
    
    .filter-buttons,
    .quick-actions {
        flex-wrap: wrap;
    }
    
    .chart-container,
    .map-container {
        height: 200px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 

/* --- REMOVED ALL DUPLICATE RULES - USING CLEAN LAYOUT ABOVE --- */

/* ======================================
   ADVANCED TEXT EFFECTS & MICRO-INTERACTIONS
   ====================================== */

/* Glowing Text Effect */
.glow-text {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 68, 182, 0.9));
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--neon-blue);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 1s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--neon-blue); }
}

/* Liquid Button Effects */
.liquid-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 50px;
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.liquid-btn:hover::before {
    width: 300px;
    height: 300px;
}

.liquid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Holographic Card Effect */
.holographic-card {
    position: relative;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: holographicShimmer 3s linear infinite;
}

@keyframes holographicShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.holographic-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Neon Border Animation */
.neon-border {
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)) border-box;
    background-clip: padding-box;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-green));
    border-radius: inherit;
    z-index: -1;
    animation: neonRotate 4s linear infinite;
}

@keyframes neonRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Label Animation */
.floating-label {
    position: relative;
    margin-bottom: 30px;
}

.floating-label input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid var(--gray-300);
    background: transparent;
    font-size: 16px;
    transition: all 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: var(--gray-400);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-label input:focus ~ label,
.floating-label input:valid ~ label {
    top: -10px;
    font-size: 12px;
    color: var(--neon-blue);
}

.floating-label input:focus {
    border-bottom-color: var(--neon-blue);
}

/* Pulse Animation for Important Elements */
.pulse-animation {
    animation: advancedPulse 2s ease-in-out infinite;
}

@keyframes advancedPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Micro-interactions for Buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-modern:hover::after {
    width: 300px;
    height: 300px;
}

.btn-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-modern:active {
    transform: translateY(0) scale(0.98);
}

/* Stagger Animation for Lists */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply effects to existing elements */
.hero-title {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.btn-hero-primary,
.btn-hero-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary::after,
.btn-hero-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-hero-primary:hover::after,
.btn-hero-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Performance optimizations */
.particle,
.morphing-shape,
.floating-dashboard,
.floating-icon {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ======================================
   MOBILE OPTIMIZATIONS
   ====================================== */

@media (max-width: 768px) {
    .morphing-shapes {
        display: none; /* Hide complex shapes on mobile for performance */
    }
    
    .parallax-container {
        transform: none; /* Disable parallax on mobile */
    }
    
    .cursor-glow,
    .cursor-trail {
        display: none; /* Hide cursor effects on touch devices */
    }
}

/* ======================================
   ADVANCED BACKGROUND & PARALLAX SYSTEM
   ====================================== */

/* Enhanced Background with Parallax */
body {
    background: url('angkor-bg.jpg') top center/cover no-repeat fixed, #f5f7fa;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden;
    z-index: 1;
}

/* Parallax Layer System */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-parallax) !important; /* Parallax background layer */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    animation: parallaxFloat 20s ease-in-out infinite;
}

.parallax-layer.bg-main {
    background-image: url('angkor-bg.jpg');
    z-index: var(--z-background);
    width: 100vw;
    height: 100vh;
    opacity: 0.7;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.parallax-layer.bg-overlay {
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        rgba(255, 68, 182, 0.1) 50%,
        rgba(68, 255, 136, 0.1) 75%,
        rgba(255, 215, 0, 0.1) 100%
    );
    z-index: var(--z-parallax); /* Parallax overlay layer */
    transform: translateZ(-30px) scale(1.1);
    animation: parallaxFloat 25s ease-in-out infinite reverse, colorShift 15s linear infinite;
}

/* Morphing Geometric Shapes */
.morphing-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-animations) !important; /* Animation layer */
    overflow: hidden;
}

.morphing-shape {
    position: absolute;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(2.5px);
    /* Reduce size for all shapes */
    max-width: 180px;
    max-height: 180px;
    animation: morphShape 12s ease-in-out infinite;
    will-change: transform, border-radius;
}

.morphing-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-green));
}

.morphing-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
}

.morphing-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 20%;
    animation-delay: -8s;
    background: linear-gradient(45deg, var(--neon-gold), var(--neon-blue));
}

.morphing-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 60%;
    animation-delay: -6s;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-pink));
}

/* Interactive Cursor Effects */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor); /* Cursor effects layer */
    mix-blend-mode: screen;
    transition: all 0.1s ease;
    opacity: 0;
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--neon-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor); /* Cursor effects layer */
    transition: all 0.2s ease;
    opacity: 0;
}

/* ======================================
   NAVIGATION INTERACTION FIXES
   ====================================== */

/* Ensure all navigation elements are interactive */
.dashboard-nav *,
.control-panel * {
    pointer-events: auto !important;
}

/* Additional navigation interaction fixes */
.nav-left,
.nav-center,
.nav-right,
.user-profile,
.logout-btn,
.global-search,
.language-toggle,
.control-group,
.filter-btn,
.quick-btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: var(--z-navigation-elements) !important; /* Navigation elements layer */
}

/* Ensure hover states work */
.nav-left:hover,
.nav-center:hover,
.nav-right:hover,
.user-profile:hover,
.logout-btn:hover,
.global-search:hover,
.language-toggle:hover,
.control-group:hover,
.filter-btn:hover,
.quick-btn:hover {
    pointer-events: auto !important;
}

/* Fix for any potential overlay issues */
.dashboard-nav::before,
.dashboard-nav::after,
.control-panel::before,
.control-panel::after {
    pointer-events: none !important;
}

/* Ensure buttons and interactive elements are clickable */
.btn,
button,
input,
select,
a {
    pointer-events: auto !important;
}

/* Fix for any animation overlays */
.floating-particles,
.morphing-shapes,
.parallax-container {
    pointer-events: none !important;
}

/* Ensure cursor effects don't interfere */
.cursor-glow,
.cursor-trail {
    pointer-events: none !important;
    z-index: var(--z-cursor) !important; /* Cursor effects layer */
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
}
.user-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    min-width: 140px;
    z-index: 1000;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.2s;
}
.user-dropdown .dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}
.user-dropdown .dropdown-item:hover {
    background: #f0f0f0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2FA Modal Styles (match dashboard) */
#twoFAModal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(30, 34, 44, 0.35);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
#twoFAModal.active {
    display: flex;
}
.twofa-modal-content {
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,0.12);
    padding: 32px 24px 24px 24px;
    max-width: 340px;
    margin: auto;
    min-width: 280px;
    text-align: center;
    font-family: inherit;
}
.twofa-modal-content h3 {
    margin-bottom: 18px;
    color: #2d3a4a;
    font-size: 1.2rem;
}
.twofa-modal-content label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
    text-align: left;
}
.twofa-modal-content input[type="tel"],
.twofa-modal-content input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 14px;
    font-size: 1rem;
    background: #f7f7f9;
    transition: border 0.15s;
}
.twofa-modal-content input:focus {
    border: 1.5px solid #2d7be5;
    outline: none;
}
.twofa-modal-content .btn {
    width: 100%;
    margin-bottom: 8px;
}
@media (max-width: 700px) {
    .twofa-modal-content { padding: 16px; }
}

/* ======================================
   ADD FACTORY MODAL STYLES
   ====================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Modal Content */
.modal-content {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-base);
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* File Upload Styling */
.file-upload {
    position: relative;
}

.file-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-input-container input[type="file"] {
    display: none;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    justify-content: center;
}

.file-input-label:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.file-name {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base);
}

.checkbox-item:hover {
    background: var(--gray-50);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xs);
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base);
}

.radio-item:hover {
    background: var(--gray-50);
}

.radio-item input[type="radio"] {
    display: none;
}

.radiomark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-base);
}

.radio-item input[type="radio"]:checked + .radiomark {
    border-color: var(--primary);
}

.radio-item input[type="radio"]:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Multi-select Styling */
select[multiple] {
    min-height: 120px;
    padding: 8px;
}

select[multiple] option {
    padding: 6px 12px;
    margin: 2px 0;
    border-radius: var(--radius-xs);
}

select[multiple] option:checked {
    background: var(--primary);
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    margin-top: 32px;
}

.form-actions .btn {
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-container {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: var(--success);
}

/* Loading State for Submit Button */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading .btn-loading {
    display: inline-block;
}

.btn.loading .btn-text {
    display: none;
}

/* ======================================
   PROFILE MODAL STYLES
   ====================================== */

/* Profile Modal */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-modal.active,
.profile-modal[style*="flex"] {
    opacity: 1;
    visibility: visible;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal-backdrop);
}

.profile-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    z-index: var(--z-modal);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-modal.active .profile-modal-content,
.profile-modal[style*="flex"] .profile-modal-content {
    transform: scale(1) translateY(0);
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
}

.profile-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-modal-body {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.profile-section {
    margin-bottom: 32px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.profile-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    font-size: 0.8rem;
}

.avatar-upload:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.avatar-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.name-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}

/* Drag-and-drop overlay styles */
.avatar-container.dragover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(59, 130, 246, 0.25);
    border: 2px dashed var(--primary);
    border-radius: 50%;
    z-index: 2;
    animation: dragPulse 0.7s infinite alternate;
}

@keyframes dragPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2); }
    100% { box-shadow: 0 0 16px 4px rgba(59, 130, 246, 0.25); }
}

.avatar-upload-progress {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--primary);
    display: none;
    box-shadow: var(--shadow-sm);
}

.avatar-container.uploading .avatar-upload-progress {
    display: block;
}

.avatar-upload-success {
    color: var(--success);
    font-size: 1.2rem;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px 12px;
    display: none;
}

.avatar-container.success .avatar-upload-success {
    display: block;
}

.avatar-upload-error {
    color: var(--error);
    font-size: 1rem;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 6px 10px;
    display: none;
}

.avatar-container.error .avatar-upload-error {
    display: block;
}

/* Form Feedback Styling */
.form-feedback {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 8px;
    margin-bottom: 16px;
}

.form-feedback.success {
    color: var(--success);
}

/* Responsive Design for Profile Modal */
@media (max-width: 768px) {
    .profile-modal-content {
        width: 95vw;
        border-radius: var(--radius-lg);
    }
    
    .profile-modal-header {
        padding: 20px 24px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .profile-modal-body {
        padding: 24px;
    }
    
    .avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ======================================
   DEPLOYMENT NOTIFICATION STYLES
   ====================================== */

/* Notification System Enhancements */
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.notification-item {
    position: relative;
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--gray-50);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.notification-item.unread {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.notification-item.deployment-notification {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-left: 4px solid var(--neon-blue);
}

.notification-item.deployment-notification:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #f8faff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.notification-icon {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: var(--space-md);
}

.deployment-notification .notification-icon {
    background: linear-gradient(135deg, var(--neon-blue), var(--primary));
    color: white;
    animation: deploymentIconPulse 2s infinite;
}

@keyframes deploymentIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
}

.notification-content {
    margin-left: 60px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xs);
}

.notification-title {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin: 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    margin-left: var(--space-sm);
}

.notification-message {
    color: var(--gray-600);
    margin: var(--space-xs) 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.unread-indicator {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: unreadPulse 2s infinite;
}

@keyframes unreadPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Deployment Notification Badges */
.deployment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: var(--space-sm) 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge-feature {
    background: linear-gradient(135deg, #dcfdf7, #a7f3d0);
    color: #047857;
    border-color: #10b981;
}

.badge-bugfix {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    color: #92400e;
    border-color: #f59e0b;
}

.badge-improvement {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1e40af;
    border-color: #3b82f6;
}

.badge-security {
    background: linear-gradient(135deg, #fce7f3, #f9a8d4);
    color: #be185d;
    border-color: #ec4899;
}

.badge-action {
    background: linear-gradient(135deg, #fee2e2, #fca5a5);
    color: #dc2626;
    border-color: #ef4444;
    animation: actionRequired 2s infinite;
}

@keyframes actionRequired {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* View Details Button */
.view-details-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-sm);
    text-decoration: none;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.view-details-btn:active {
    transform: translateY(0);
}

/* Deployment Modal */
.deployment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-lg);
}

.deployment-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.deployment-modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.deployment-modal-overlay.show .deployment-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-xl);
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    padding-right: 3rem;
}

.close-modal {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.close-modal:hover {
    opacity: 1;
}

.modal-content {
    padding: var(--space-xl);
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.deployment-info {
    margin-bottom: var(--space-xl);
}

.deployment-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.deployment-meta .version,
.deployment-meta .date {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
}

.deployment-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
}

.changelog-section {
    margin-bottom: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.changelog-section h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 0 var(--space-md) 0;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.changelog-section ul {
    margin: 0;
    padding-left: var(--space-lg);
    list-style: none;
}

.changelog-section li {
    position: relative;
    padding: var(--space-xs) 0;
    color: var(--gray-700);
    line-height: 1.5;
}

.changelog-section li::before {
    content: '→';
    position: absolute;
    left: -1rem;
    color: var(--primary);
    font-weight: bold;
}

.changelog-section.breaking-changes {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-left-color: var(--error);
}

.changelog-section.breaking-changes h3 {
    color: var(--error);
}

.changelog-section.breaking-changes li::before {
    color: var(--error);
}

.action-required {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid var(--warning);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.action-required h3 {
    margin: 0 0 var(--space-sm) 0;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.action-required p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
}

.release-notes {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.release-notes h3 {
    margin: 0 0 var(--space-md) 0;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.release-notes p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.modal-footer {
    background: var(--gray-50);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Notification Count Badge */
.count-badge {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    min-width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: countPulse 2s infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .deployment-modal-overlay {
        padding: var(--space-md);
    }
    
    .deployment-modal {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--space-lg);
    }
    
    .modal-content {
        padding: var(--space-lg);
    }
    
    .deployment-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .deployment-badges {
        gap: var(--space-xs);
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .notification-content {
        margin-left: 50px;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .deployment-modal {
        margin: var(--space-sm);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
        padding-right: 2.5rem;
    }
    
    .close-modal {
        font-size: 1.5rem;
        top: var(--space-md);
        right: var(--space-md);
    }
    
    .changelog-section {
        padding: var(--space-md);
    }
    
    .notification-item {
        padding: var(--space-sm);
    }
    
    .notification-content {
        margin-left: 45px;
    }
    
    .notification-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        top: var(--space-sm);
        left: var(--space-sm);
    }
}

/* Z-index for modal */
:root {
    --z-modal: 10100;
}