/**
 * SMC Binance Futures Quantitative Terminal - Core Stylesheet
 * High-tech institutional dark theme with neon accents
 */

:root {
    --bg-dark: #0a0d14;
    --bg-card: #121722;
    --bg-card-hover: #171d2b;
    --bg-sidebar: #0f131c;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(41, 121, 255, 0.25);
    --text-primary: #f0f4f8;
    --text-muted: #8a99ad;
    --accent-blue: #2979ff;
    --accent-cyan: #00e5ff;
    --accent-green: #00e676;
    --accent-red: #ff1744;
    --accent-gold: #ffd600;
    --accent-purple: #7c4dff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* Glassmorphism & Cards */
.quant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quant-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    font-size: 2.2rem;
    opacity: 0.15;
}

.stat-val {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--text-muted);
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
}

.sidebar-nav {
    padding: 1rem 0;
    list-style: none;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin: 2px 12px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(41, 121, 255, 0.25), rgba(41, 121, 255, 0.08));
    border-left: 3px solid var(--accent-blue);
}

.sidebar-nav .nav-link i {
    font-size: 1.15rem;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: rgba(15, 19, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-body {
    padding: 1.5rem;
    flex: 1;
}

/* Badges & Pills */
.badge-long {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.35);
    font-weight: 700;
}

.badge-short {
    background: rgba(255, 23, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 23, 68, 0.35);
    font-weight: 700;
}

.badge-notrade {
    background: rgba(138, 153, 173, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(138, 153, 173, 0.25);
}

.badge-high {
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 214, 0, 0.35);
}

.score-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.score-high {
    background: rgba(0, 230, 118, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.score-good {
    background: rgba(41, 121, 255, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.score-low {
    background: rgba(138, 153, 173, 0.15);
    color: var(--text-muted);
}

/* Table styles */
.quant-table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.quant-table thead th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}

.quant-table tbody td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    font-size: 0.88rem;
}

.quant-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Filter buttons */
.filter-btn-group .btn {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: transparent;
}

.filter-btn-group .btn.active, .filter-btn-group .btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Price flash tick animations */
.price-cell {
    transition: background-color 0.4s ease, color 0.4s ease;
    border-radius: 4px;
    padding: 2px 6px;
    display: inline-block;
}

.price-flash-up {
    background-color: rgba(0, 230, 118, 0.3) !important;
    color: #00e676 !important;
}

.price-flash-down {
    background-color: rgba(255, 23, 68, 0.3) !important;
    color: #ff1744 !important;
}

/* Modals */
.modal-content.quant-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 14px;
}

.quant-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

.quant-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Chart Container */
#tv-chart-container {
    width: 100%;
    height: 520px;
    border-radius: 8px;
    overflow: hidden;
    background: #0d111a;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
}

