/**
 * VIVIANE Trading AI - Main Stylesheet
 * Quantum Control Matrix v4.0
 */

 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

 /* ============================================================
    BASE STYLES
    ============================================================ */
:root {
    --primary-blue: #60a5fa;
    --primary-purple: #a78bfa;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e0e0e0;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    /* Taille de police de base réduite */
    font-size: 14px;
}

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }
 
 body {
     font-family: 'Inter', sans-serif;
     background: #0a0a0a;
     color: #e0e0e0;
     overflow: hidden;
     position: relative;
     height: 100vh;
     background-image: 
         radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
         radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
 }
 
 /* Footer */
 .footer {
     text-align: center;
     padding: 30px 0;
     border-top: 1px solid rgba(255, 255, 255, 0.08);
     margin-top: 50px;
 }
 
 .footer-text {
     color: #6b7280;
     font-size: 0.85em;
     letter-spacing: 1px;
 }
 
 /* ============================================================
    MAIN CONTAINER
    ============================================================ */
 
 .quantum-matrix {
     height: 100vh;
     padding: 20px;
     position: relative;
     z-index: 1;
     overflow: auto;
 }
 
 /* ============================================================
    HEADER
    ============================================================ */
 
 .quantum-header {
     text-align: center;
     padding: 20px 0 30px 0;
     position: relative;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }
 
 .time-display {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 150px;
 }
 
 .time-display.bangkok {
     align-items: flex-start;
 }
 
 .time-display.paris {
     align-items: flex-end;
 }
 
 .time-label {
     font-size: 0.65em;
     color: #6b7280;
     display: block;
     margin-bottom: 8px;
     letter-spacing: 2px;
     font-weight: 500;
     text-transform: uppercase;
 }
 
 .time-value {
     color: #60a5fa;
     font-weight: 600;
     font-size: 1.2em;
     text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
 }
 
 .header-center {
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: center;
 }
 
 .quantum-title {
     font-size: 3.2em;
     font-weight: 700;
     letter-spacing: 8px;
     position: relative;
     display: inline-block;
     background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
 }
 
 .quantum-subtitle {
     margin-top: 12px;
     font-size: 0.9em;
     color: #9ca3af;
     letter-spacing: 4px;
     font-weight: 300;
     opacity: 0.9;
 }
 
 a.logout-button{
    text-decoration: none;
    border-radius: 20px;
    margin-top: 15px;
 }
 /* ============================================================
    CRYPTO TICKER
    ============================================================ */
 
 .crypto-ticker-wrapper {
     background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
     border-top: 1px solid rgba(96, 165, 250, 0.2);
     border-bottom: 1px solid rgba(96, 165, 250, 0.2);
     padding: 14px 0;
     margin-bottom: 25px;
     overflow: hidden;
     position: relative;
     min-height: 45px;
 }
 
 .crypto-ticker-wrapper::before,
 .crypto-ticker-wrapper::after {
     content: '';
     position: absolute;
     top: 0;
     bottom: 0;
     width: 80px;
     z-index: 2;
 }
 
 .crypto-ticker-wrapper::before {
     left: 0;
     background: linear-gradient(90deg, #0a0a0a, transparent);
 }
 
 .crypto-ticker-wrapper::after {
     right: 0;
     background: linear-gradient(90deg, transparent, #0a0a0a);
 }
 
 .crypto-ticker {
     display: flex;
     white-space: nowrap;
     animation: ticker-scroll 30s linear infinite;
     position: relative;
     z-index: 1;
 }
 
 @keyframes ticker-scroll {
     0% { transform: translateX(0); }
     100% { transform: translateX(-50%); }
 }
 
 .crypto-item {
     display: inline-flex;
     align-items: center;
     margin: 0 30px;
     font-size: 0.9em;
     white-space: nowrap;
 }
 
 .crypto-symbol {
     font-weight: 600;
     color: #60a5fa;
     margin-right: 12px;
     font-family: 'JetBrains Mono', monospace;
 }
 
 .crypto-price {
     color: #e5e7eb;
     margin-right: 12px;
     font-weight: 500;
 }
 
 .crypto-change {
     font-size: 0.85em;
     padding: 3px 10px;
     border-radius: 20px;
     font-weight: 500;
 }
 
 .crypto-change.positive {
     color: #10b981;
     background: rgba(16, 185, 129, 0.15);
 }
 
 .crypto-change.negative {
     color: #ef4444;
     background: rgba(239, 68, 68, 0.15);
 }
 
 /* ============================================================
    STATS BAR
    ============================================================ */
 
 .quantum-stats {
     display: grid;
     grid-template-columns: repeat(5, 1fr);
     gap: 15px;
     padding: 20px 25px;
     background: rgba(255, 255, 255, 0.03);
     border-radius: 16px;
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.08);
     margin-bottom: 25px;
 }
 
 .stat-item {
     text-align: center;
 }
 
 .stat-value {
     font-size: 1.6em;
     font-weight: 600;
     background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }
 
 .stat-label {
     font-size: 0.7em;
     color: #6b7280;
     text-transform: uppercase;
     margin-top: 5px;
     letter-spacing: 1px;
     font-weight: 500;
 }
 
 /* ============================================================
    TERMINAL CURSOR
    ============================================================ */
 
 .terminal-cursor {
     display: inline-block;
     width: 10px;
     height: 20px;
     background: #60a5fa;
     animation: blink 1s step-start infinite;
     vertical-align: text-bottom;
 }
 
 @keyframes blink {
     50% { opacity: 0; }
 }
 
 /* ============================================================
    MONITORING SECTION
    ============================================================ */
 
 .monitoring-section {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 20px;
     margin-bottom: 25px;
 }
 
 /* Timeline events */
 .timeline-section {
     background: rgba(255, 255, 255, 0.03);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.08);
     border-radius: 12px;
     padding: 20px;
     height: 200px;
     overflow-y: auto;
 }
 
 .section-title {
     font-size: 0.95em;
     font-weight: 600;
     color: #e5e7eb;
     margin-bottom: 15px;
     text-transform: uppercase;
     letter-spacing: 1.5px;
 }
 
 .timeline-event {
     display: flex;
     align-items: center;
     padding: 10px 12px;
     margin-bottom: 10px;
     background: rgba(255, 255, 255, 0.02);
     border-radius: 8px;
     border-left: 3px solid #60a5fa;
     transition: all 0.3s ease;
     animation: timeline-slide 0.5s ease-out;
 }
 
 .timeline-event:hover {
     background: rgba(255, 255, 255, 0.04);
     transform: translateX(5px);
 }
 
 @keyframes timeline-slide {
     from {
         transform: translateX(-20px);
         opacity: 0;
     }
     to {
         transform: translateX(0);
         opacity: 1;
     }
 }
 
 .event-time {
     color: #6b7280;
     font-size: 0.85em;
     margin-right: 15px;
     min-width: 60px;
     font-family: 'JetBrains Mono', monospace;
 }
 
 .event-type {
     color: #60a5fa;
     font-size: 0.85em;
     margin-right: 12px;
     text-transform: uppercase;
     font-weight: 600;
     padding: 2px 8px;
     background: rgba(96, 165, 250, 0.15);
     border-radius: 4px;
 }
 
 .event-details {
     color: #e5e7eb;
     font-size: 0.85em;
     flex: 1;
     overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-break: break-all;
 }
 
 /* ============================================================
    TERMINAL LOG
    ============================================================ */
 
 .terminal-section {
     background: #000000;
     border: 1px solid rgba(255, 255, 255, 0.08);
     border-radius: 12px;
     padding: 20px;
     height: 200px;
     overflow-y: auto;
     font-family: 'JetBrains Mono', monospace;
     font-size: 0.85em;
 }
 
 .terminal-line {
     margin-bottom: 8px;
     color: #10b981;
     opacity: 0;
     animation: terminal-fade 0.3s ease-out forwards;
 }
 
 @keyframes terminal-fade {
     to {
         opacity: 1;
     }
 }
 
 .terminal-prompt {
     color: #60a5fa;
     margin-right: 10px;
 }
 
 .terminal-timestamp {
     color: #4b5563;
     margin-right: 10px;
 }
 
 /* ============================================================
    MODULE GRID
    ============================================================ */
 
 .module-matrix {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 20px;
     padding: 20px 0;
     align-content: start;
 }
 
 /* ============================================================
    MODULE PANELS
    ============================================================ */
 
 .module-panel {
     background: rgba(255, 255, 255, 0.03);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.08);
     border-radius: 12px;
     position: relative;
     padding: 24px;
     overflow: hidden;
     transition: all 0.3s ease;
 }
 
 .module-panel:hover {
     background: rgba(255, 255, 255, 0.05);
     border-color: rgba(96, 165, 250, 0.3);
     transform: translateY(-2px);
     box-shadow: 0 10px 40px rgba(96, 165, 250, 0.1);
 }
 
 .module-panel::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 1px;
     background: linear-gradient(90deg, transparent, #60a5fa, transparent);
     animation: scan-line 3s linear infinite;
 }
 
 @keyframes scan-line {
     0% { transform: translateX(-100%); }
     100% { transform: translateX(100%); }
 }
 
 .module-id {
     font-size: 0.75em;
     color: #6b7280;
     opacity: 0.8;
     margin-bottom: 8px;
     font-family: 'JetBrains Mono', monospace;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }
 
 .module-name {
     font-size: 1.4em;
     font-weight: 600;
     color: #f3f4f6;
     margin-bottom: 12px;
     text-transform: uppercase;
     letter-spacing: 1px;
 }
 
 .module-status {
     display: flex;
     align-items: center;
     gap: 10px;
     margin-bottom: 20px;
     font-size: 0.85em;
     color: #9ca3af;
     font-weight: 500;
 }
 
 .status-dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     animation: pulse 2s ease-in-out infinite;
 }
 
 .status-online { 
     background: #10b981; 
     box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); 
 }
 
 .status-processing { 
     background: #f59e0b; 
     box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); 
 }
 
 .status-offline { 
     background: #ef4444; 
     box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); 
 }
 
 @keyframes pulse {
     0%, 100% { transform: scale(1); opacity: 1; }
     50% { transform: scale(1.3); opacity: 0.7; }
 }
 
 /* ============================================================
    STRATEGY STREAM
    ============================================================ */
 
 .strategy-stream {
     height: 250px;
     overflow-y: auto;
     padding-right: 10px;
     scrollbar-width: thin;
     scrollbar-color: #374151 #111827;
 }
 
 .strategy-stream::-webkit-scrollbar {
     width: 6px;
 }
 
 .strategy-stream::-webkit-scrollbar-track {
     background: #111827;
     border-radius: 3px;
 }
 
 .strategy-stream::-webkit-scrollbar-thumb {
     background: #374151;
     border-radius: 3px;
 }
 
 .strategy-stream::-webkit-scrollbar-thumb:hover {
     background: #4b5563;
 }
 
 .strategy-entry {
     background: rgba(255, 255, 255, 0.02);
     border-radius: 8px;
     border-left: 3px solid #60a5fa;
     padding: 12px;
     margin-bottom: 12px;
     font-size: 0.85em;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
 }
 
 .strategy-entry:hover {
     background: rgba(255, 255, 255, 0.04);
     transform: translateX(5px);
 }
 
 .strategy-name {
     color: #60a5fa;
     font-weight: 600;
     margin-bottom: 6px;
     font-family: 'JetBrains Mono', monospace;
     overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-break: break-all;
 }
 
 .strategy-details {
     display: flex;
     justify-content: space-between;
     align-items: center;
     color: #9ca3af;
     cursor: pointer;
 }
 
 .strategy-pair {
     color: #e5e7eb;
 }
 
 .strategy-roi {
     font-weight: 600;
     font-size: 1.1em;
 }
 
 .roi-positive { 
     color: #10b981; 
 }
 
 .roi-negative { 
     color: #ef4444; 
 }
 
 .strategy-indicators {
     font-size: 0.8em;
     color: #6b7280;
     margin-top: 6px;
 }
 
 /* ============================================================
    MODULE CONTROLS & BUTTONS
    ============================================================ */
 
 .module-controls {
     margin: 15px 0;
     display: flex;
     justify-content: center;
 }
 
 .module-button {
     background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
     border: 1px solid rgba(96, 165, 250, 0.3);
     border-radius: 8px;
     padding: 10px 20px;
     color: #60a5fa;
     font-family: 'Inter', sans-serif;
     font-size: 0.85em;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
     cursor: pointer;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     gap: 8px;
     backdrop-filter: blur(10px);
     position: relative;
     overflow: hidden;
 }
 
 .module-button::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
     transition: left 0.5s ease;
 }
 
 .module-button:hover {
     background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
     border-color: rgba(96, 165, 250, 0.5);
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
 }
 
 .module-button:hover::before {
     left: 100%;
 }
 
 .module-button:active {
     transform: translateY(0);
     box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
 }
 
 .button-text {
     font-weight: 600;
 }
 
 .button-icon {
     font-size: 1.1em;
     filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
 }
 
 /* ============================================================
    PERFORMANCE BAR
    ============================================================ */
 
 .performance-bar {
     position: absolute;
     bottom: 10px;
     left: 24px;
     right: 24px;
     height: 4px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 2px;
     overflow: hidden;
 }
 
 .performance-fill {
     height: 100%;
     background: linear-gradient(90deg, #60a5fa, #a78bfa);
     width: 75%;
     border-radius: 2px;
     animation: performance-pulse 2s ease-in-out infinite;
 }
 
 @keyframes performance-pulse {
     0%, 100% { opacity: 0.8; }
     50% { opacity: 1; }
 }
 
/* ============================================================
    NAVIGATION MENU
    ============================================================ */

.nav-menu-container {
    position: relative;
    margin-bottom: 20px;
}

.nav-menu {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: clip;
    flex-wrap: wrap;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    animation: scan-line 3s linear infinite;
}

.nav-item {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    color: #60a5fa;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-icon {
    font-size: 1.1em;
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
}

/* ============================================================
    HAMBURGER MENU BUTTON
    ============================================================ */

.hamburger-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.hamburger-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu-btn.hamburger-active .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);

}

.hamburger-menu-btn.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu-btn.hamburger-active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
    NAVIGATION OVERLAY
    ============================================================ */

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.overlay-active {
    display: block;
    opacity: 1;
}

 /* ============================================================
    SCROLLBAR STYLES
    ============================================================ */
 
 ::-webkit-scrollbar {
     width: 8px;
     height: 8px;
 }
 
 ::-webkit-scrollbar-track {
     background: #111827;
     border-radius: 4px;
 }
 
 ::-webkit-scrollbar-thumb {
     background: #374151;
     border-radius: 4px;
 }
 
 ::-webkit-scrollbar-thumb:hover {
     background: #4b5563;
 }
 
 .boxCard{
     padding: 20px 25px;
     background: rgba(255, 255, 255, 0.03);
     border-radius: 16px;
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.08);
     margin-bottom: 25px;
 }
 
 .smallTitle{
     font-size: 0.95em;
     font-weight: 600;
     color: #e5e7eb;
     text-transform: uppercase;
     letter-spacing: 1.5px;
 }
 
 .filter-label {
     font-size: 0.75em;
     color: #6b7280;
     font-weight: 500;
     text-transform: uppercase;
     letter-spacing: 1px;
 }
 
.filter-input,
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
 
 .btn {
     padding: 10px 20px;
     border: none;
     border-radius: 10px;
     font-weight: 600;
     font-size: 0.9em;
     cursor: pointer;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     gap: 8px;
     text-transform: uppercase;
     letter-spacing: 1px;
 }
 
 .btn-secondary {
     background: rgba(255, 255, 255, 0.03);
     color: #9ca3af;
     border: 1px solid rgba(255, 255, 255, 0.08);
 }
 
 .btn-primary {
     background: linear-gradient(135deg, #60a5fa, #a78bfa);
     color: white;
 }
 
 .control-buttons{
     display: flex;
     gap: 10px;
 }
 
 @keyframes pulse {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.5; }
 }
 
 /* ============================================================
    SCROLLBAR STYLES
    ============================================================ */

 .login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%); */
    background: url(../img/bg.jpg) no-repeat center center / cover;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.login-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(16, 185, 129, 0.1),
        0 0 40px rgba(16, 185, 129, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #e5e7eb;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-input {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #e5e7eb;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(30, 41, 59, 1);
}

.form-input::placeholder {
    color: #6b7280;
}

.login-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.login-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #fca5a5;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #10b981;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================================
    RESPONSIVE
    ============================================================ */

@media (max-width: 768px) {
    .hamburger-menu-btn {
        display: flex;
    }
    
    .quantum-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0 20px 0;
        justify-content: center ;
    }
    
    .time-display {
        min-width: auto;
        width: 100%;
        max-width: 200px;
        padding: 8px 15px;
    }
    
    .quantum-title {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .quantum-subtitle {
        font-size: 0.75em;
        letter-spacing: 2px;
    }
    
    .header-center {
        padding: 0 60px 0 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px 20px;
        gap: 15px;
        border-radius: 0;
        border: none;
        z-index: 1000;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        background: rgba(0, 0, 0, 1);
        border-left: 3px solid #60a5fa;
    }
    .nav-menu.menu-open {
        right: 0;
        opacity: 1;
    }
    
    .nav-item {
        width: 100%;
        padding: 15px 20px;
        justify-content: flex-start;
        font-size: 0.9em;
    }
    
    .nav-menu::before {
        display: none;
    }
    
    .quantum-stats, 
    .monitoring-section,
    .module-matrix,
    .monitoring-section .timeline-event{
        display: block ;
        & .stat-item, & .event-details, & .module-panel{
            margin: 15px 0px;
        }
    }
    .terminal-section{
        margin: 15px 0px;
    }
    .filter-group{
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .quantum-title {
        font-size: 1.6em;
        letter-spacing: 2px;
    }
    
    .quantum-subtitle {
        font-size: 0.7em;
    }
    
    .time-display {
        padding: 6px 12px;
    }
    
    .time-value {
        font-size: 1em;
    }
    
    .time-label {
        font-size: 0.6em;
    }
    
    .nav-menu {
        width: 85%;
        max-width: 280px;
    }
    
    .hamburger-menu-btn {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    .header-center {
        padding: 0;
        text-align: center ;
    }
}