/* --- YOUR EXACT STYLES --- */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* --- THEME: FINANCIAL TERMINAL --- */
body { font-family: 'Inter', sans-serif; background-color: #020617; color: #cbd5e1; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Hard Geometry Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* Card Style */
.enterprise-card { 
    background: #0f172a; 
    border: 1px solid #1e293b; 
    border-radius: 0px; 
}

/* Stock Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #0f172a; 
    color: #f8fafc;
    height: 36px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #1e293b;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- PRIVACY & SECURITY LAYERS --- */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: block !important; }
body.is-admin .admin-only.flex { display: flex !important; }
body.is-admin .admin-only.grid { display: grid !important; }

.operator-only { display: none !important; }
body.is-operator .operator-only { display: block !important; }
body.is-operator .operator-only.flex { display: flex !important; }
body.is-operator .operator-only.grid { display: grid !important; }
body.is-operator .admin-only:not(.operator-only) { display: none !important; }

.non-admin { display: block !important; }
body.is-admin .non-admin { display: none !important; }

.non-investor { display: block !important; }
body.is-investor .non-investor { display: none !important; }

/* Hide from both admin and investor */
body.is-admin .non-admin.non-investor,
body.is-investor .non-admin.non-investor { display: none !important; }

.restricted-data { display: none !important; }
body.is-admin .restricted-data,
body.is-investor .restricted-data { display: block !important; }

body.is-admin .restricted-data.flex,
body.is-investor .restricted-data.flex,
body.is-admin div.restricted-data.flex,
body.is-investor div.restricted-data.flex { display: flex !important; }

/* Table Styles - Professional Financial Terminal */
th { 
    font-size: 0.625rem; 
    letter-spacing: 0.05em; 
    text-transform: uppercase; 
    color: #94a3b8; 
    padding: 12px 16px; 
    border-bottom: 2px solid #1e293b; 
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
td { 
    padding: 10px 16px; 
    font-size: 0.75rem; 
    border-bottom: 1px solid #1e293b; 
    font-family: 'JetBrains Mono', monospace;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #1e293b; }
tbody tr { transition: background-color 0.1s ease; }

input, select, textarea { border-radius: 0px !important; }

.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .1s; border-radius: 0px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .1s; border-radius: 0px; }
input:checked + .slider { background-color: #f59e0b; }
input:checked + .slider:before { transform: translateX(20px); }

#loader { position: fixed; inset: 0; background: #020617; z-index: 999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s; }
#loader.hidden { opacity: 0; pointer-events: none; }

.collapsible-content { transition: max-height 0.3s ease-in-out, opacity 0.3s; overflow: hidden; max-height: 2000px; opacity: 1; }
.collapsible-content.collapsed { max-height: 0; opacity: 0; }

/* Radar Page - Fixed Overlay - Completely hidden when not active */
#radarPage.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
#radarPage:not(.hidden) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
    overflow-y: auto !important;
}

/* Operator Command Page - Fixed Overlay - Completely hidden when not active */
#operatorCommandPage.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
#operatorCommandPage:not(.hidden) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
    overflow-y: auto !important;
}

/* Team Management Center - Fixed Overlay - Completely hidden when not active */
#operatorsManagementView.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
#operatorsManagementView:not(.hidden) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
    overflow-y: auto !important;
}
