/* OVERLORD TERMINAL - GLOBAL STYLES
   Theme: Bloomberg Dark / Institutional Command
*/
:root {
    --bg-dark: #000000;
    --bg-surface: #0a0e14;
    --bg-accent: #161b22;
    --text-primary: #e6edf3;
    --text-muted: #8b949e;
    --brand-blue: #0068ff;
    --brand-orange: #ffa028;
    --pos-green: #00ff66;
    --neg-red: #ff3333;
    --neutral-gold: #d29922;
    --border-dim: #30363d;
}
/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 14px; /* Improved from 13px */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}
/* --- Navigation --- */
.terminal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-dim);
    margin-bottom: 20px;
}
.brand {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--brand-blue);
}
.pulse {
    color: var(--pos-green);
    animation: blink 1.5s step-end infinite;
    margin-right: 8px;
}
@keyframes blink {
    50% { opacity: 0; }
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border-dim);
    background: var(--bg-accent);
}
.logout { color: var(--neg-red); }
/* --- Dashboard Grid --- */
.terminal-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}
.main-panel, .side-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    padding: 20px;
}
/* --- Tables (The Meat) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
th {
    background: var(--bg-accent);
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid var(--border-dim);
}
td {
    padding: 12px;
    border-bottom: 1px solid var(--border-dim);
    font-size: 12px;
}
tr:hover {
    background: rgba(255, 160, 40, 0.08); /* Slightly stronger for visibility */
}
/* --- Status & Vibes --- */
.positive { color: var(--pos-green); font-weight: bold; }
.negative { color: var(--neg-red); font-weight: bold; }
.highlight { color: var(--brand-orange); }
.vibe-strongly-bullish { background: rgba(0, 255, 102, 0.15); color: var(--pos-green); padding: 2px 6px; }
.vibe-bearish { background: rgba(255, 51, 51, 0.15); color: var(--neg-red); padding: 2px 6px; }
.vibe-neutral { color: var(--text-muted); }
/* --- Intelligence Feed --- */
.vibe-feed {
    max-height: 350px; /* Changed to max-height for flexibility */
    overflow-y: auto;
    font-size: 11px;
    padding-right: 10px;
}
.feed-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--border-dim);
}
.timestamp { color: var(--brand-blue); margin-right: 8px; }
/* --- Footer Bar --- */
.terminal-footer {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid var(--border-dim);
    font-size: 10px;
    color: var(--text-muted);
}
.status-bar {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
/* Legal Disclaimer (new) */
.legal-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dim);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.legal-disclaimer strong {
    color: #f87171;
    font-weight: 600;
}
.legal-disclaimer a {
    color: var(--brand-blue);
    text-decoration: underline;
    transition: color 0.2s;
}
.legal-disclaimer a:hover {
    color: #60a5fa;
}
/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
    background: var(--border-dim);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
/* Focus styles (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .terminal-grid { grid-template-columns: 1fr; }
    .side-panel { margin-top: 20px; }
}
@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .legal-disclaimer { font-size: 0.7rem; padding: 0 8px; }
    .status-bar { flex-direction: column; gap: 8px; }
}

/* Dropdown enhancements for terminal theme - added for alert settings dropdown */
.dropdown-menu {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: 0; /* sharp edges for terminal feel */
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    margin-top: 4px; /* slight spacing */
}

.dropdown-item {
    color: var(--text-primary);
    font-size: 12px;
    padding: 8px 16px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-accent);
    color: var(--text-primary);
}

.dropdown-item.text-danger {  /* logout */
    color: var(--neg-red) !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(255, 51, 51, 0.15);
}

.dropdown-toggle::after {
    color: var(--text-muted);  /* make caret less prominent */
}


.btn-amber {
    background-color: #f59e0b !important;
    color: white !important;
    border: none !important;
}

.btn-amber:hover {
    background-color: #d97706 !important;
}


