/* ============================================
   Format Benchmarks - Custom Styles
   ============================================ */

:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --card-bg: #1e1e2e;
    --accent: #0f3460;
    --highlight: #e94560;
}

/* ---- Base ---- */
body {
    background-color: var(--primary-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* ---- Navbar ---- */
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ---- Sidebar ---- */
.sticky-sidebar {
    position: sticky;
    top: 1rem;
}

/* ---- Format Indicators ---- */
.format-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.format-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
}

/* ---- Charts ---- */
.chart-container {
    position: relative;
    height: 300px;
    padding: 0.5rem;
}

/* ---- Tables ---- */
.table-header-sticky th {
    position: sticky;
    top: 0;
    background: #212529;
    z-index: 1;
}

.table td,
.table th {
    vertical-align: middle;
    font-size: 0.9em;
}

/* ---- Size Tabs ---- */
.size-tab {
    min-width: 90px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.size-tab.active {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
}

/* ---- Feature Cards (Welcome) ---- */
.feature-card {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

/* ---- Cards ---- */
.card {
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: rgba(13, 110, 253, 0.25) !important;
}

/* ---- Badges ---- */
.bg-purple {
    background-color: #9b59b6 !important;
}

.bg-teal {
    background-color: #1abc9c !important;
}

/* ---- Loading ---- */
#loading .card-body {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ---- Buttons ---- */
.btn {
    transition: all 0.15s ease;
}

.btn:active {
    transform: scale(0.97);
}

#run-btn {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ---- Run History ---- */
.run-history-item {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.run-history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.run-history-item .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.run-history-item .status-dot.completed {
    background: #27ae60;
}

.run-history-item .status-dot.failed {
    background: #e74c3c;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a5276;
}

/* ---- Helper ---- */
.x-small {
    font-size: 0.75em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }

    .sticky-sidebar {
        position: static;
    }

    .table {
        font-size: 0.8em;
    }
}
