/* =====================================================
   AI PLASTIC INTELLIGENCE - DARK VENTURE THEME
   Next-Generation Manufacturing Interface
   ===================================================== */

/* CSS Variables for Dark AI Venture Theme */
:root {
    /* Dark AI-Venture Color Palette */
    --primary-color: #00E5FF;
    --primary-dark: #00ACC1;
    --secondary-color: #FF3D71;
    --accent-color: #6C5CE7;
    --success-color: #00E676;
    --warning-color: #FFB300;
    --error-color: #FF1744;
    
    /* Dark Background System */
    --bg-dark-primary: #0A0A0F;
    --bg-dark-secondary: #1A1A2E;
    --bg-dark-tertiary: #16213E;
    --bg-dark-card: #1E1E2E;
    --bg-dark-elevated: #2A2A3E;
    
    /* Dark AI Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark-neural: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --gradient-tech-dark: linear-gradient(135deg, #0a0a0f 0%, #1e1e2e 100%);
    --gradient-cyber: linear-gradient(45deg, #00e5ff, #6c5ce7, #ff3d71);
    --gradient-neural-dark: linear-gradient(45deg, #0a0a0f, #1a1a2e, #16213e);
    
    /* Text Colors for Dark Theme */
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3CC;
    --text-muted: #8A8AA3;
    --text-accent: #00E5FF;
    
    /* Border Colors for Dark Theme */
    --border-dark: #2A2A3E;
    --border-light: #3A3A4E;
    --border-accent: #00E5FF40;
    
    /* Glass Effects for Dark Theme */
    --glass-dark: rgba(26, 26, 46, 0.8);
    --glass-darker: rgba(10, 10, 15, 0.9);
    --glass-accent: rgba(0, 229, 255, 0.1);
    
    /* Modern Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 60px 0; /* Reduced from 120px to 60px */
    --container-max-width: 1200px;
    
    /* Animation Durations */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* Z-Index Layers */
    --z-loading: 10000;
    --z-navigation: 1000;
    --z-modal: 900;
    --z-floating: 100;
}

/* =====================================================
   GLOBAL STYLES & DARK THEME RESET
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Force page to start at top */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-padding-top: 0;
}

/* Ensure the first section (hero) starts right after navbar */
body > section:first-of-type,
body > .hero-section {
    margin-top: 0 !important;
}

/* Dark theme scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection colors for dark theme */
::selection {
    background: var(--primary-color);
    color: var(--bg-dark-primary);
}

/* =====================================================
   DARK THEME NAVIGATION
   ===================================================== */

.navbar-fixed {
    z-index: var(--z-navigation);
}

.nav-wrapper {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(42, 42, 62, 0.3);
    padding: 0 20px;
    height: 48px !important; /* Reduced from default 64px */
    line-height: 48px !important;
    transition: all var(--transition-normal) ease;
}

.gradient-bg {
    background: var(--gradient-neural-dark) !important;
}

.brand-logo {
    display: none !important; /* Hide empty brand logo to give more space */
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-normal) ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-cyber);
    transition: all var(--transition-normal) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-outline-white {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
    font-weight: 600;
    transition: all var(--transition-normal) ease;
}

.btn-outline-white:hover {
    background: var(--primary-color) !important;
    color: var(--bg-dark-primary) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Dark Mobile Navigation */
.sidenav {
    background: var(--bg-dark-secondary) !important;
    border-right: 1px solid var(--border-dark);
}

.sidenav li > a {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-dark);
}

.sidenav li > a:hover {
    background: var(--glass-accent) !important;
    color: var(--primary-color) !important;
}

.user-view {
    background: var(--gradient-neural-dark) !important;
}

/* Enhanced mobile menu button visibility */
.sidenav-trigger {
    color: var(--text-primary) !important;
    font-size: 1.8rem !important;
    line-height: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    margin-left: auto !important;
    background: rgba(0, 229, 255, 0.1) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.sidenav-trigger:hover {
    background: rgba(0, 229, 255, 0.2) !important;
    color: var(--primary-color) !important;
    transform: scale(1.05) !important;
}

.sidenav-trigger i {
    font-size: 1.8rem !important;
    color: inherit !important;
}

/* Sidenav trigger enhancement */
.sidenav-trigger img {
    transition: all 0.3s ease;
}

.sidenav-trigger:hover img {
    filter: drop-shadow(0 0 12px rgba(0, 255, 135, 0.8)) !important;
    transform: scale(1.05);
}

/* =====================================================
   DARK HERO SECTION
   ===================================================== */

.hero-section {
    min-height: calc(100vh - 48px); /* Account for smaller navbar height */
    height: calc(100vh - 48px); /* Ensure exact height */
    position: relative;
    background: var(--gradient-neural-dark);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding-top: 0; /* Remove padding, use margin instead */
    margin-top: 48px; /* Push down exactly for navbar */
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.shape {
    position: absolute;
    background: var(--gradient-cyber);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 40%;
    animation-delay: 15s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    bottom: 40%;
    left: 30%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

#neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 15px 0 30px 0; /* Much more compact padding */
    width: 100%;
    display: flex;
    align-items: flex-start;
    min-height: 100%;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .hero-content {
        padding: 15px 0 25px 0; /* Better mobile spacing */
    }
    
    .hero-section {
        margin-top: 56px; /* Updated for mobile navbar */
        min-height: calc(100vh - 56px);
        height: calc(100vh - 56px);
        align-items: flex-start;
    }
}

/* Small mobile screens */
@media (max-width: 600px) {
    .hero-content {
        padding: 10px 0 20px 0; /* Compact for small screens */
    }
    
    .hero-section {
        margin-top: 56px; /* Mobile navbar height */
        min-height: calc(100vh - 56px);
        height: calc(100vh - 56px);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem); /* Slightly smaller */
    font-weight: 800;
    line-height: 1.05; /* Tighter line height */
    margin-bottom: 20px; /* Reduced margin */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.ai-text {
    background: var(--gradient-cyber);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.manufacturing-text {
    color: var(--text-primary);
    display: block;
    margin-top: 5px; /* Reduced margin */
}

.typing-text {
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.1rem; /* Slightly smaller */
    color: var(--text-secondary);
    margin-bottom: 25px; /* Reduced margin */
    max-width: 600px;
    line-height: 1.6; /* Tighter line height */
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px; /* Reduced gap */
    margin: 30px 0; /* Reduced margin */
}

.stat-item {
    text-align: center;
    padding: 15px; /* Reduced padding */
    background: var(--glass-dark);
    border-radius: 12px; /* Slightly smaller radius */
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal) ease;
}

.stat-item:hover {
    transform: translateY(-3px); /* Reduced transform */
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2);
}

.stat-number {
    font-size: 2.2rem; /* Slightly smaller */
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem; /* Slightly smaller */
    margin-top: 3px; /* Reduced margin */
}

.hero-actions {
    display: flex;
    gap: 15px; /* Reduced gap */
    flex-wrap: wrap;
    margin-top: 25px; /* Reduced margin */
}

.btn-primary {
    background: var(--gradient-cyber) !important;
    border: none;
    font-weight: 600;
    padding: 12px 24px; /* More compact padding */
    font-size: 0.95rem; /* Slightly smaller */
    border-radius: 25px; /* Smaller border radius */
    transition: all var(--transition-normal) ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary) !important;
    font-weight: 600;
    padding: 13px 30px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition-normal) ease;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
}

/* Hero Visual Elements */
.floating-card {
    background: var(--glass-dark) !important;
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.ai-brain {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.brain-core {
    width: 60px;
    height: 60px;
    background: var(--gradient-cyber);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.neural-paths {
    position: absolute;
    width: 100%;
    height: 100%;
}

.path {
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.6;
    animation: neuralFlow 3s infinite ease-in-out;
}

.path-1 {
    height: 40px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    animation-delay: 0s;
}

.path-2 {
    height: 40px;
    bottom: 10px;
    right: 20px;
    transform: rotate(-45deg);
    animation-delay: 0.5s;
}

.path-3 {
    height: 40px;
    bottom: 10px;
    left: 20px;
    transform: rotate(45deg);
    animation-delay: 1s;
}

.path-4 {
    height: 40px;
    top: 10px;
    right: 50%;
    transform: translateX(50%) rotate(-45deg);
    animation-delay: 1.5s;
}

@keyframes neuralFlow {
    0%, 100% { opacity: 0.3; height: 30px; }
    50% { opacity: 1; height: 50px; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-icon {
    color: var(--primary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =====================================================
   DARK SECTIONS
   ===================================================== */

.section-padding {
    padding: var(--section-padding);
    background: var(--bg-dark-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px; /* Reduced from 80px */
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Smaller title */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px; /* Reduced from 20px */
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Closer to text */
    left: 50%;
    transform: translateX(-50%);
    width: 50px; /* Smaller underline */
    height: 2px; /* Thinner */
    background: var(--gradient-cyber);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem; /* Smaller subtitle */
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dark About Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-cyber);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}

.timeline-icon {
    position: absolute;
    left: -7px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--bg-dark-primary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.timeline-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Interactive Globe */
.interactive-globe {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.globe-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.globe {
    width: 100%;
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.location-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark-primary);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-marker img {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.location-marker:hover {
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.marker-1 { top: 40%; left: 30%; }
.marker-2 { top: 50%; left: 70%; }
.marker-3 { top: 60%; left: 50%; }
.marker-4 { top: 30%; right: 20%; }
.marker-5 { top: 50%; left: 10%; }

/* =====================================================
   DARK AI INNOVATIONS SECTION
   ===================================================== */

.bg-tech {
    background: var(--gradient-tech-dark) !important;
    position: relative;
}

.bg-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300E5FF" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.innovation-card {
    background: var(--glass-dark) !important;
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal) ease;
    backdrop-filter: blur(15px);
}

.innovation-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.ai-icon-container {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-neural-dark);
}

.ai-icon {
    font-size: 3rem;
    color: var(--primary-color);
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 229, 255, 0.8); }
}

.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 4s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 1; }
}

.innovation-card .card-content {
    padding: 30px;
    background: var(--bg-dark-card);
}

.innovation-card .card-title {
    color: var(--text-primary) !important;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.innovation-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.innovation-card .card-action {
    background: var(--bg-dark-card);
    border-top: 1px solid var(--border-dark);
    padding: 20px 30px;
}

.innovation-card .btn-flat {
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: all var(--transition-normal) ease;
}

.innovation-card .btn-flat:hover {
    background: var(--glass-accent) !important;
}

/* =====================================================
   DARK PRODUCTS SECTION
   ===================================================== */

.product-showcase {
    background: var(--bg-dark-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.tabs {
    background: var(--bg-dark-secondary) !important;
}

.tabs .tab a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all var(--transition-normal) ease;
}

.tabs .tab a:hover,
.tabs .tab a.active {
    color: var(--primary-color) !important;
    background: var(--glass-accent) !important;
}

.tabs .indicator {
    background: var(--primary-color) !important;
}

.product-content {
    padding: 40px;
    background: var(--bg-dark-card);
}

.product-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-dark-elevated);
    padding: 30px;
}

.product-image img {
    filter: brightness(1.2) contrast(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-darker);
    opacity: 0;
    transition: all var(--transition-normal) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.product-image:hover .image-overlay {
    opacity: 1;
}

.tech-specs {
    text-align: center;
    color: var(--text-primary);
}

.tech-specs h6 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.tech-specs ul {
    list-style: none;
    padding: 0;
}

.tech-specs li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-details h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.product-details p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--success-color);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* =====================================================
   DARK SUSTAINABILITY SECTION
   ===================================================== */

.bg-eco {
    background: var(--gradient-tech-dark) !important;
    position: relative;
}

.sustainability-metrics {
    display: grid;
    gap: 30px;
}

.metric-card {
    background: var(--glass-dark);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all var(--transition-normal) ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--success-color);
    box-shadow: 0 15px 35px rgba(0, 230, 118, 0.2);
}

.metric-icon {
    background: var(--gradient-cyber);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.metric-icon i {
    color: var(--bg-dark-primary);
    font-size: 1.8rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.sustainability-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-circle {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-content {
    text-align: center;
    z-index: 2;
    background: var(--glass-dark);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(15px);
}

.circle-content h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.circle-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 880;
    stroke-dashoffset: 220;
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0% { stroke-dashoffset: 880; }
    50% { stroke-dashoffset: 220; }
    100% { stroke-dashoffset: 880; }
}

/* =====================================================
   DARK CONTACT SECTION
   ===================================================== */

.contact-form {
    background: var(--glass-dark) !important;
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.contact-form .card-content {
    padding: 40px;
}

.input-field input,
.input-field textarea {
    background: var(--bg-dark-elevated);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    color: var(--text-primary) !important;
    padding: 15px;
    margin-bottom: 10px;
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color) !important;
}

.input-field label {
    color: var(--text-secondary) !important;
    transform: translateY(-20px) !important;
    font-size: 0.9rem !important;
}

.input-field label.active {
    color: var(--primary-color) !important;
}

.select-wrapper input.select-dropdown {
    background: var(--bg-dark-elevated);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    color: var(--text-primary) !important;
}

.dropdown-content {
    background: var(--bg-dark-elevated) !important;
    border: 1px solid var(--border-dark);
}

.dropdown-content li > a {
    color: var(--text-secondary) !important;
}

.dropdown-content li > a:hover {
    background: var(--glass-accent) !important;
    color: var(--primary-color) !important;
}

/* =====================================================
   DARK FOOTER
   ===================================================== */

.page-footer {
    background: var(--gradient-neural-dark) !important;
    border-top: 1px solid var(--border-dark);
    padding-top: 30px !important; /* Reduced padding */
    padding-bottom: 10px !important; /* Reduced padding */
}

.page-footer .container {
    padding-top: 20px; /* Reduced container padding */
    padding-bottom: 20px; /* Reduced container padding */
}

.page-footer h5 {
    color: var(--text-primary) !important;
    margin-bottom: 15px !important; /* Reduced margin */
    font-size: 1.3rem; /* Slightly smaller */
}

.page-footer p {
    color: var(--text-secondary) !important;
    font-size: 0.9rem; /* Smaller text */
    line-height: 1.5; /* Tighter line height */
}

.page-footer ul {
    margin-top: 10px !important; /* Reduced margin */
}

.page-footer ul li {
    margin-bottom: 5px !important; /* Reduced spacing between links */
}

.page-footer ul li a {
    color: var(--text-secondary) !important;
    transition: all var(--transition-normal) ease;
    font-size: 0.9rem; /* Smaller links */
}

.page-footer ul li a:hover {
    color: var(--primary-color) !important;
}

.footer-copyright {
    background: var(--bg-dark-secondary) !important;
    border-top: 1px solid var(--border-dark);
    padding: 15px 0 !important; /* Reduced from default padding */
}

.footer-copyright .container {
    font-size: 0.85rem; /* Smaller copyright text */
}

/* =====================================================
   DARK LOADING SCREEN
   ===================================================== */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-primary);
    z-index: var(--z-loading);
    display: none; /* Hidden by default - no loading screen needed */
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.ai-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.loader-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: coreGlow 2s infinite;
}

@keyframes coreGlow {
    0%, 100% { box-shadow: 0 0 10px var(--primary-color); }
    50% { box-shadow: 0 0 30px var(--primary-color); }
}

.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 40px;
    height: 40px;
    animation-duration: 1s;
}

.ring-2 {
    width: 60px;
    height: 60px;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.ring-3 {
    width: 80px;
    height: 80px;
    animation-duration: 2s;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-content h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-dark-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 2px;
    animation: progressLoad 3s ease;
    width: 0;
}

@keyframes progressLoad {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* =====================================================
   RESPONSIVE DESIGN FOR DARK THEME
   ===================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 15px;
        margin: 20px 0;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn-primary, .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* =====================================================
   UTILITY CLASSES FOR DARK THEME
   ===================================================== */

.text-gradient {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-dark);
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(15px);
    border-radius: 15px;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
    transition: all var(--transition-normal) ease;
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide loading screen after page loads */
.loaded #loading-screen {
    opacity: 0;
    pointer-events: none;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#loading-screen.hidden {
    display: none;
}

/* Ensure hero section is immediately visible after navbar */
#home.hero-section {
    margin-top: 48px !important; /* Updated for smaller navbar */
    padding-top: 0 !important;
    position: relative;
    top: 0;
}

/* Mobile specific positioning */
@media (max-width: 600px) {
    #home.hero-section {
        margin-top: 56px !important; /* Larger mobile navbar */
        min-height: calc(100vh - 56px) !important;
        height: calc(100vh - 56px) !important;
    }
}

@media (max-width: 992px) {
    #home.hero-section {
        margin-top: 56px !important; /* Standard mobile navbar */
    }
}

/* Force content to start at very top of hero section */
.hero-section .container {
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding-top: 20px;
}

/* =====================================================
   MOBILE-FIRST RESPONSIVE NAVIGATION
   ===================================================== */

/* Mobile navbar optimizations */
@media (max-width: 600px) {
    .nav-wrapper {
        height: 56px !important;
        line-height: 56px !important;
        padding: 0 15px !important;
    }
    
    .brand-logo {
        display: none !important; /* Hide empty brand logo to give more space */
    }
    
    .sidenav-trigger {
        color: var(--text-primary) !important;
        font-size: 1.8rem !important;
        line-height: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 15px !important;
        margin-left: auto !important;
        background: rgba(0, 229, 255, 0.1) !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .sidenav-trigger:hover {
        background: rgba(0, 229, 255, 0.2) !important;
        color: var(--primary-color) !important;
        transform: scale(1.05) !important;
    }
    
    .sidenav-trigger i {
        font-size: 1.8rem !important;
        color: inherit !important;
    }
    
    /* Ensure sidenav trigger is properly sized */
    .sidenav-trigger {
        color: var(--text-primary) !important;
        font-size: 1.8rem !important;
        line-height: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 15px !important;
        margin-left: auto !important;
        background: rgba(0, 229, 255, 0.1) !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .sidenav-trigger:hover {
        background: rgba(0, 229, 255, 0.2) !important;
        color: var(--primary-color) !important;
        transform: scale(1.05) !important;
    }
}

@media (max-width: 992px) {
    .sidenav-trigger {
        font-size: 2rem !important;
        padding: 0 20px !important;
        background: var(--primary-color) !important;
        color: var(--bg-dark-primary) !important;
        border-radius: 12px !important;
        margin: 8px !important;
    }
    
    .sidenav-trigger:hover {
        background: var(--primary-dark) !important;
        box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3) !important;
    }
}

@media (max-width: 600px) {
    .sidenav-trigger {
        font-size: 1.8rem !important;
        padding: 0 18px !important;
        margin: 6px !important;
    }
}

@media (max-width: 480px) {
    .sidenav-trigger {
        font-size: 1.6rem !important;
        padding: 0 15px !important;
        margin: 4px !important;
    }
}

/* Enhanced Mobile Sidenav */
@media (max-width: 992px) {
    .sidenav {
        width: 280px !important;
        background: var(--bg-dark-primary) !important;
        border-right: 2px solid var(--border-accent) !important;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .sidenav .user-view {
        background: linear-gradient(45deg, 
            rgba(0, 229, 255, 0.9), 
            rgba(255, 61, 113, 0.8), 
            rgba(108, 92, 231, 0.9),
            rgba(0, 229, 255, 0.8)
        ) !important; /* Enhanced bright gradient background */
        background-size: 400% 400% !important;
        animation: gradientShift 4s ease infinite !important;
        padding: 24px 18px !important; /* More generous padding */
        margin: 0 !important;
        position: relative !important;
        overflow: hidden !important;
        border-bottom: 3px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    }
    
    .sidenav .user-view .background {
        opacity: 0.2 !important;
        filter: brightness(1.5) contrast(1.2) !important; /* Brighter background image */
    }
    
    .sidenav .user-view .circle {
        width: 58px !important; /* Larger and more prominent */
        height: 58px !important;
        margin-top: 10px !important;
        border: 4px solid transparent !important;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) !important;
        background-size: 400% 400% !important;
        box-shadow: 
            0 0 20px rgba(0, 229, 255, 0.7),
            0 0 40px rgba(255, 61, 113, 0.5),
            0 0 60px rgba(108, 92, 231, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.2) !important; /* Multi-layer glow with inner light */
        filter: brightness(2.2) contrast(1.5) saturate(1.8) !important; /* Even brighter */
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        animation: logoGlow 2s ease-in-out infinite, logoPulse 3s ease-in-out infinite !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .sidenav .user-view .circle:hover {
        transform: scale(1.15) rotate(5deg) !important;
        box-shadow: 
            0 0 30px rgba(0, 229, 255, 0.9),
            0 0 60px rgba(255, 61, 113, 0.7),
            0 0 90px rgba(108, 92, 231, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.3) !important; /* Enhanced multi-layer glow */
        filter: brightness(2.8) contrast(1.8) saturate(2.2) !important;
        animation: logoGlowIntense 1s ease-in-out infinite, logoSparkle 0.8s linear infinite !important;
    }
    
    .sidenav .user-view .name {
        font-size: 1.15rem !important;
        font-weight: 800 !important; /* Even bolder text */
        margin-top: 12px !important;
        display: block !important;
        color: #FFFFFF !important; /* Pure white for maximum contrast */
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.6),
            0 0 10px rgba(255, 255, 255, 0.3) !important; /* Enhanced text shadow with glow */
        letter-spacing: 0.5px !important;
    }
    
    .sidenav .user-view .email {
        font-size: 0.95rem !important;
        opacity: 0.95 !important; /* Highly visible */
        margin-top: 4px !important;
        display: block !important;
        color: rgba(255, 255, 255, 0.9) !important; /* Bright white with slight transparency */
        font-weight: 600 !important;
        text-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.4),
            0 0 8px rgba(255, 255, 255, 0.2) !important; /* Enhanced readability */
        letter-spacing: 0.3px !important;
    }
    
    .sidenav li > a {
        color: var(--text-primary) !important;
        font-size: 1rem !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid var(--border-dark) !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .sidenav li > a i {
        margin-right: 15px !important;
        color: var(--primary-color) !important;
        font-size: 1.2rem !important;
    }
    
    .sidenav li > a:hover {
        background: var(--glass-accent) !important;
        color: var(--primary-color) !important;
        padding-left: 25px !important;
        transition: all 0.3s ease !important;
    }
}

/* Enhanced bright logo effects for side menu */
.sidenav .user-view .background img {
    filter: brightness(2.5) contrast(1.8) saturate(2.2) hue-rotate(10deg) !important;
    opacity: 0.5 !important;
    transform: scale(1.15) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    animation: backgroundFloat 6s ease-in-out infinite !important;
}

.sidenav .user-view:hover .background img {
    filter: brightness(3.0) contrast(2.0) saturate(2.6) hue-rotate(20deg) !important;
    opacity: 0.7 !important;
    transform: scale(1.25) rotate(3deg) !important;
    animation: backgroundFloatIntense 3s ease-in-out infinite !important;
}

/* Bright animated border for user view with enhanced effects */
.sidenav .user-view::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color), 
        var(--primary-color)
    ) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 3s ease infinite !important;
    opacity: 0.3 !important;
    z-index: 1 !important;
    border-radius: 8px !important;
    filter: blur(1px) !important;
}

/* Add a secondary glow effect */
.sidenav .user-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(0, 229, 255, 0.1) 0%,
        rgba(255, 61, 113, 0.08) 30%,
        rgba(108, 92, 231, 0.06) 60%,
        transparent 100%
    ) !important;
    animation: pulseGlow 4s ease-in-out infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced logo animations */
@keyframes logoGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(0, 229, 255, 0.7),
            0 0 40px rgba(255, 61, 113, 0.5),
            0 0 60px rgba(108, 92, 231, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.2);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(0, 229, 255, 0.9),
            0 0 50px rgba(255, 61, 113, 0.7),
            0 0 70px rgba(108, 92, 231, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

@keyframes logoPulse {
    0%, 100% { 
        filter: brightness(2.2) contrast(1.5) saturate(1.8);
        transform: scale(1);
    }
    50% { 
        filter: brightness(2.6) contrast(1.7) saturate(2.0);
        transform: scale(1.02);
    }
}

@keyframes logoGlowIntense {
    0% { 
        box-shadow: 
            0 0 30px rgba(0, 229, 255, 0.9),
            0 0 60px rgba(255, 61, 113, 0.7),
            0 0 90px rgba(108, 92, 231, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 
            0 0 40px rgba(0, 229, 255, 1.0),
            0 0 80px rgba(255, 61, 113, 0.9),
            0 0 120px rgba(108, 92, 231, 0.7),
            inset 0 0 25px rgba(255, 255, 255, 0.4);
    }
}

@keyframes logoSparkle {
    0%, 100% { filter: brightness(2.8) contrast(1.8) saturate(2.2) hue-rotate(0deg); }
    25% { filter: brightness(3.0) contrast(2.0) saturate(2.4) hue-rotate(5deg); }
    50% { filter: brightness(3.2) contrast(2.2) saturate(2.6) hue-rotate(10deg); }
    75% { filter: brightness(3.0) contrast(2.0) saturate(2.4) hue-rotate(5deg); }
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: scale(1.15) translateY(0px) rotate(0deg);
        filter: brightness(2.5) contrast(1.8) saturate(2.2) hue-rotate(10deg);
    }
    50% { 
        transform: scale(1.18) translateY(-2px) rotate(1deg);
        filter: brightness(2.7) contrast(1.9) saturate(2.4) hue-rotate(15deg);
    }
}

@keyframes backgroundFloatIntense {
    0%, 100% { 
        transform: scale(1.25) translateY(0px) rotate(3deg);
        filter: brightness(3.0) contrast(2.0) saturate(2.6) hue-rotate(20deg);
    }
    33% { 
        transform: scale(1.28) translateY(-3px) rotate(5deg);
        filter: brightness(3.2) contrast(2.1) saturate(2.8) hue-rotate(25deg);
    }
    66% { 
        transform: scale(1.26) translateY(2px) rotate(1deg);
        filter: brightness(3.1) contrast(2.0) saturate(2.7) hue-rotate(22deg);
    }
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* Ensure content is above the animated background */
.sidenav .user-view > * {
    position: relative !important;
    z-index: 2 !important;
}

/* External link styling for side menu */
.sidenav li > a[target="_blank"] {
    position: relative !important;
}

.sidenav li > a[target="_blank"]::after {
    content: "↗" !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.8rem !important;
    color: var(--primary-color) !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

.sidenav li > a[target="_blank"]:hover::after {
    opacity: 1 !important;
    color: var(--text-primary) !important;
    transform: translateY(-50%) scale(1.2) !important;
}

.sidenav li > a[target="_blank"]:hover {
    background: linear-gradient(45deg, var(--glass-accent), rgba(0, 229, 255, 0.15)) !important;
    border-left: 3px solid var(--primary-color) !important;
}

/* =====================================================
   LOGIN BUTTON & MODAL STYLES
   ===================================================== */

/* Login Button in Header */
.login-btn {
    background: var(--glass-dark) !important;
    border: 1px solid var(--border-accent) !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 15px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.login-btn:hover {
    background: var(--glass-accent) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3) !important;
}

.login-btn i {
    color: var(--text-primary) !important;
    font-size: 24px !important;
}

/* Login Modal Styles */
.modal {
    background: var(--bg-dark-card) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 400px !important;
    width: 90% !important;
}

.modal .modal-content {
    padding: 20px !important;
    background: transparent !important;
}

.modal-header h4 {
    color: var(--text-primary) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    margin: 0 0 25px 0 !important;
    font-size: 1.8rem !important;
}

/* Login Method Selection */
.login-methods {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

.login-method-btn {
    flex: 1 !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.login-method-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.login-method-btn i {
    font-size: 18px !important;
    margin-right: 5px !important;
}

/* Login Forms */
.login-form {
    animation: fadeInUp 0.3s ease !important;
}

.login-form .input-field {
    margin-bottom: 15px !important;
}

.login-form .input-field input {
    background: var(--bg-dark-elevated) !important;
    border: 1px solid var(--border-dark) !important;
    border-radius: 6px !important;
    padding: 12px 15px 12px 45px !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
}

.login-form .input-field input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2) !important;
    background: var(--bg-dark-card) !important;
}

.login-form .input-field label {
    color: var(--text-muted) !important;
    left: 45px !important;
    font-size: 13px !important;
}

.login-form .input-field label.active {
    color: var(--primary-color) !important;
    font-size: 11px !important;
}

.login-form .input-field .prefix {
    color: var(--text-muted) !important;
    font-size: 18px !important;
    left: 12px !important;
    top: 12px !important;
}

.login-form .input-field .prefix.active {
    color: var(--primary-color) !important;
}

/* Login Form Elements */
.login-form p {
    margin: 10px 0 !important;
}

.login-form button[type="submit"] {
    width: 100% !important;
    height: 42px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

.login-form button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Checkbox Styles */
.login-form [type="checkbox"] + span {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
}

.login-form [type="checkbox"]:checked + span {
    color: var(--primary-color) !important;
}

/* Back Button */
#back-to-selection {
    margin: 10px 0 !important;
}

#back-to-selection a {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
}

#back-to-selection a:hover {
    color: var(--primary-color) !important;
}

/* Forgot Password */
.login-form + div + div a,
.modal-content > div:last-of-type a {
    font-size: 12px !important;
    margin-top: 10px !important;
    display: inline-block !important;
}

/* Modal Footer */
.modal .modal-footer {
    background: var(--bg-dark-elevated) !important;
    border-top: 1px solid var(--border-dark) !important;
    border-radius: 0 0 12px 12px !important;
    padding: 10px 15px !important;
}

.modal .modal-footer .btn-flat {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.modal .modal-footer .btn-flat:hover {
    color: var(--text-primary) !important;
    background: var(--glass-accent) !important;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Login Modal */
@media screen and (max-width: 600px) {
    .modal {
        max-width: 90% !important;
        margin: 5% auto !important;
    }
    
    .login-methods {
        flex-direction: column !important;
    }
    
    .login-method-btn {
        height: 80px !important;
        font-size: 14px !important;
    }
    
    .login-method-btn i {
        font-size: 24px !important;
    }
}

/* =====================================================
   HEADER USER AUTHENTICATION STYLES
   ===================================================== */

/* User info display in header */
.user-info-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-info-header #welcome-text {
    opacity: 0.8;
    margin-right: 4px;
}

.user-info-header #username-display {
    font-weight: 500;
    color: var(--primary-color, #00E5FF);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* Login and Logout button styles */
#login-btn, #logout-btn {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

#login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Logout button specific styles */
#logout-btn {
    color: #FF3D71;
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.3);
}

#logout-btn:hover {
    background: rgba(255, 61, 113, 0.2);
    color: #FF1744;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 61, 113, 0.3);
}

/* Loading state for both buttons */
#login-btn.loading, #logout-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#login-btn.loading i, #logout-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .user-info-header {
        font-size: 12px;
        margin-right: 10px;
    }
    
    #login-btn span, #logout-btn span {
        display: none !important;
    }
    
    .user-info-header #welcome-text {
        display: none;
    }
}

/* =====================================================
   MATERIALIZE SIDENAV WITH LED EFFECTS
   ===================================================== */

/* LED Icon Effects */
.led-icon {
    position: relative;
    color: #00E676 !important;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.6), 0 0 16px rgba(0, 230, 118, 0.4);
    transition: all 0.3s ease;
}

.led-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.3s ease;
}

.led-icon:hover {
    color: #00FF87 !important;
    text-shadow: 0 0 12px rgba(0, 255, 135, 0.8), 0 0 24px rgba(0, 255, 135, 0.6);
}

.led-icon:hover::before {
    background: radial-gradient(circle, rgba(0, 255, 135, 0.4) 0%, transparent 70%);
    width: 24px;
    height: 24px;
}

/* Enhanced Sidenav Styling */
.sidenav {
    background: linear-gradient(180deg, var(--bg-dark-primary) 0%, var(--bg-dark-secondary) 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-dark);
}

/* Materialize Sidenav Links Enhancement */
.sidenav li > a {
    color: var(--text-secondary) !important;
    padding: 12px 32px !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 400;
    height: auto !important;
    line-height: 1.5 !important;
}

.sidenav li > a:hover {
    background: rgba(0, 230, 118, 0.1) !important;
    color: var(--text-primary) !important;
    border-left: 3px solid #00E676;
}

.sidenav li > a i.led-icon {
    margin-right: 24px !important;
    width: 24px;
    text-align: center;
}

/* Materialize Collapsible Enhancement */
.sidenav .collapsible {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.sidenav .collapsible-header {
    background-color: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
    padding: 12px 32px !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidenav .collapsible-header:hover {
    background: rgba(0, 230, 118, 0.1) !important;
    color: var(--text-primary) !important;
    border-left: 3px solid #00E676;
}

.sidenav .collapsible-header.active {
    background: rgba(0, 230, 118, 0.15) !important;
    color: var(--text-primary) !important;
    border-left: 3px solid #00E676;
}

.sidenav .collapsible-body {
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    padding: 0 !important;
}

.sidenav .collapsible-body ul {
    margin: 0 !important;
}

.sidenav .collapsible-body li > a {
    padding: 8px 20px 8px 60px !important;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    border-left: 3px solid transparent;
}

.sidenav .collapsible-body li > a:hover {
    background: rgba(0, 230, 118, 0.08) !important;
    color: var(--text-primary) !important;
    border-left: 3px solid #00E676;
}

.sidenav .collapsible-body li > a i {
    margin-right: 16px !important;
    font-size: 18px !important;
    color: #00E676 !important;
}

/* User View Enhancement */
.sidenav .user-view {
    background: var(--gradient-primary) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sidenav .user-view .background {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Active Menu Item */
.sidenav li > a.active {
    background: rgba(0, 230, 118, 0.15) !important;
    color: var(--text-primary) !important;
    border-left: 3px solid #00E676;
}

.sidenav li > a.active .led-icon {
    color: #00FF87 !important;
    text-shadow: 0 0 12px rgba(0, 255, 135, 0.8);
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .sidenav li > a {
        padding: 10px 24px !important;
    }
    
    .sidenav .collapsible-header {
        padding: 10px 24px !important;
    }
    
    .sidenav .collapsible-body li > a {
        padding: 6px 16px 6px 50px !important;
    }
}

/* Pulsing effect for active systems */
@keyframes ledPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(0, 230, 118, 0.6), 0 0 16px rgba(0, 230, 118, 0.4);
    }
    50% {
        text-shadow: 0 0 12px rgba(0, 255, 135, 0.8), 0 0 24px rgba(0, 255, 135, 0.6);
    }
}

.sidenav a[href*="erp.ai-thongguan.com"] .led-icon,
.sidenav a[href*="erp.ai-thongguan.com"] i {
    animation: ledPulse 2s ease-in-out infinite;
}

/* ...existing code... */
