/* Modern Airport Terminal Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Cards - Light Mode */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.glass-panel:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Nexus Grid Animations */
.nexus-tile {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nexus-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Digital Card Scan Line */
.scan-line {
    width: 100%;
    height: 2px;
    background: #2563eb;
    position: absolute;
    animation: scan 2s linear infinite;
    opacity: 0.7;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Status Indicators */
.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-active { background-color: #10b981; box-shadow: 0 0 8px #10b981; }
.status-pending { background-color: #d97706; box-shadow: 0 0 8px #d97706; }
.status-alert { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Tactical Map Modal */
.tactical-modal {
    position: absolute;
    z-index: 1000;
    width: 300px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #e2e8f0;
    font-family: 'Mono', monospace;
    overflow: hidden;
}

.tactical-header {
    background: #1e293b;
    padding: 8px 12px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tactical-header:active {
    cursor: grabbing;
}

#tactical-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
}
#tactical-close:hover { color: #fff; }

.tactical-body {
    padding: 12px;
    font-size: 11px;
}

.tactical-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    border-bottom: 1px dashed #334155;
    padding-bottom: 2px;
}

.t-lbl { color: #94a3b8; }
.t-val { font-weight: bold; }

.tactical-actions {
    padding: 8px 12px;
    background: #0f172a;
    border-top: 1px solid #334155;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tactical-btn {
    flex: 1;
    background: #2563eb;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}
.tactical-btn:hover { background: #1d4ed8; }
.tactical-btn.warn { background: #dc2626; }
.tactical-btn.warn:hover { background: #b91c1c; }

/* ---- WebSim custom utility classes (recreated for runtime fidelity) ---- */

/* Fade In */
@keyframes ws-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: ws-fade-in 0.5s ease-out both;
}

/* Fade In Up */
@keyframes ws-fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: ws-fade-in-up 0.4s ease-out both;
}

/* Marquee (Live Ticker) */
@keyframes ws-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    animation: ws-marquee 22s linear infinite;
}

/* QR pattern used on the membership access card */
.pattern-qr {
    background-color: #0f172a;
    background-image:
        radial-gradient(circle at 20% 20%, #fff 0 3px, transparent 3px),
        radial-gradient(circle at 75% 30%, #fff 0 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 60%, #fff 0 2.5px, transparent 2.5px),
        radial-gradient(circle at 85% 75%, #fff 0 2px, transparent 2px),
        radial-gradient(circle at 25% 80%, #fff 0 1.5px, transparent 1.5px),
        linear-gradient(45deg, rgba(255,255,255,0.25) 0 2px, transparent 2px 6px);
    background-size: 24px 24px;
    border-radius: 4px;
}

/* Custom scrollbar for modal body */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
