/* ═══════════════════════════════════════════
   Girmarkt — Clean Dashboard Theme
   Inter font · Dark · Minimal
   ═══════════════════════════════════════════ */

:root {
    --bg: #0c0d0f;
    --bg-raised: #141619;
    --bg-hover: #1a1d22;
    --bg-input: #1a1d22;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.14);

    --text: #e8eaed;
    --text-2: #9aa0a6;
    --text-3: #5f6368;

    --accent: #8ab4f8;
    --accent-hover: #aecbfa;
    --green: #81c995;
    --red: #f28b82;
    --yellow: #fdd663;
    --orange: #fcad70;

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;

    --ease: 150ms ease;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.hide { display: none !important; }

/* ── Animations ────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade-in { animation: fadeIn 0.2s ease forwards; }

/* ── Buttons ───────────────────────────── */
.btn {
    font-family: inherit;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ease);
    white-space: nowrap;
    line-height: 1.4;
}
.primary-btn { background: var(--accent); color: #0c0d0f; font-weight: 600; }
.primary-btn:hover { background: var(--accent-hover); }
.success-btn { background: var(--green); color: #0c0d0f; font-weight: 600; }
.success-btn:hover { filter: brightness(1.1); }
.outline-btn { background: transparent; border: 1px solid var(--border-hover); color: var(--text-2); }
.outline-btn:hover { background: var(--bg-hover); color: var(--text); }
.ghost-btn { background: transparent; color: var(--text-2); }
.ghost-btn:hover { background: var(--bg-hover); color: var(--text); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { font-size: 0.75rem; padding: 5px 10px; }

/* ── Forms ──────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
input[type="text"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8125rem;
    outline: none;
    transition: border-color var(--ease);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
}
textarea { resize: vertical; min-height: 60px; }

/* ── Login ──────────────────────────────── */
.overlay {
    position: fixed; inset: 0;
    background: rgba(12,13,15,0.92);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.login-card {
    width: 360px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
}
.login-logo {
    width: 44px; height: 44px;
    background: var(--accent);
    color: #0c0d0f;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.login-header h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.3rem; }
.login-header p { color: var(--text-3); font-size: 0.8125rem; margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1rem; }
.error-msg { color: var(--red); font-size: 0.75rem; margin-bottom: 0.5rem; text-align: left; }

/* ── Header ─────────────────────────────── */
.main-header {
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
    flex-shrink: 0;
}
.header-left, .header-right { display: flex; align-items: center; gap: 10px; }
.hamburger-btn {
    display: none;
    background: none; border: none;
    color: var(--text-2); cursor: pointer;
    padding: 4px;
}
.header-brand { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
}
.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* ── App Layout ─────────────────────────── */
.app-body {
    display: flex;
    height: calc(100vh - 48px);
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────── */
.sidebar-nav {
    width: 200px;
    background: var(--bg-raised);
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.sidebar-nav nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-2);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--ease);
}
.nav-item svg { flex-shrink: 0; opacity: 0.6; }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
    background: rgba(138,180,248,0.1);
    color: var(--accent);
}
.nav-item.active svg { opacity: 1; stroke: var(--accent); }

/* ── Main Content ───────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.view-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.view-panel.hide { display: none !important; }

/* View topbar */
.view-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.view-topbar h2 { font-size: 1rem; font-weight: 600; }

/* Pill badge */
.pill-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-3);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Tab pills (markets country filter) */
.tab-pills { display: flex; gap: 2px; background: var(--bg-raised); border-radius: var(--radius); padding: 2px; }
.pill {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    transition: all var(--ease);
}
.pill:hover { color: var(--text-2); }
.pill.active { background: var(--bg-hover); color: var(--text); }

/* Segment tabs (brochure sub-tabs) */
.segment-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.seg-tab {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    transition: all var(--ease);
}
.seg-tab:not(:last-child) { border-right: 1px solid var(--border); }
.seg-tab:hover { color: var(--text-2); background: var(--bg-hover); }
.seg-tab.active { background: var(--accent); color: #0c0d0f; font-weight: 600; }

/* View body */
.view-body {
    flex: 1;
    overflow-y: auto;
}
.view-body.padded { padding: 20px; }

.sub-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.sub-panel.hide { display: none !important; }

/* ── Tables ─────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}
.data-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--bg-raised);
    position: sticky; top: 0; z-index: 1;
}
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table.compact th, .data-table.compact td {
    padding: 7px 10px;
    font-size: 0.75rem;
}

/* Switch */
.switch-container { display: flex; justify-content: center; }
.switch { position: relative; width: 36px; height: 18px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; inset: 0;
    background: #2a2d33;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.slider::before {
    content: "";
    position: absolute;
    width: 12px; height: 12px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
input:checked + .slider { background: var(--accent); }
input:checked + .slider::before { transform: translateX(18px); background: #0c0d0f; }

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
}
.status-badge.add     { background: rgba(129,201,149,0.15); color: var(--green); }
.status-badge.remove  { background: rgba(242,139,130,0.15); color: var(--red); }
.status-badge.missing { background: rgba(253,214,99,0.15); color: var(--yellow); }
.status-badge.error   { background: rgba(242,139,130,0.15); color: var(--red); }

/* ── Sync ───────────────────────────────── */
.sync-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.sync-actions-row h3 { font-size: 0.9375rem; font-weight: 600; }
.action-btns { display: flex; gap: 6px; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.metric-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
}
.metric-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-2);
}
.metric-card.accent-green .metric-value { color: var(--green); }
.metric-card.accent-red   .metric-value { color: var(--red); }
.metric-card.accent-yellow .metric-value { color: var(--yellow); }

/* Progress */
.progress-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.progress-label { font-size: 0.75rem; font-weight: 500; color: var(--text-2); }
.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0 4px;
}
.progress-track.slim { height: 3px; margin: 6px 0; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 3px;
    transition: width 0.3s ease;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--text-3);
}

.sync-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sync-split h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}

.console-box {
    background: #08090a;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    height: 200px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.6875rem;
    padding: 8px;
    color: var(--text-3);
    line-height: 1.6;
}
.console-box.compact { height: 100px; }

/* ── AI Toolbar ─────────────────────────── */
.ai-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}
.ai-toolbar-filters { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ai-toolbar-actions { display: flex; align-items: center; gap: 8px; }

.select-all-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
    margin-right: 8px;
}
.select-all-wrap input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}
.divider-v {
    width: 1px;
    height: 16px;
    background: var(--border);
    align-self: center;
    margin: 0 8px;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.pagination-info {
    font-size: 0.75rem;
    color: var(--text-2);
}
.pagination-limit {
    width: auto !important;
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
}

.filter-chip {
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    transition: all var(--ease);
}
.filter-chip:hover { color: var(--text-2); border-color: var(--border-hover); }
.filter-chip.active {
    background: rgba(138,180,248,0.12);
    color: var(--accent);
    border-color: rgba(138,180,248,0.3);
}

/* AI Settings collapsible panel */
.ai-settings-panel {
    padding: 12px 20px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.15s ease;
}
.settings-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.settings-row .form-group { flex: 1; }
.settings-row .form-group.flex-2 { flex: 2; }

/* Scan progress banner */
.scan-banner {
    padding: 10px 20px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.15s ease;
}
.scan-banner-top { margin-bottom: 4px; }
.scan-banner-stats {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-2);
}
.scan-banner-stats .muted { color: var(--text-3); }

/* ── Page Grid ──────────────────────────── */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
}

.page-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--ease);
    position: relative;
}
.page-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.page-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.page-thumb-container {
    position: relative;
    aspect-ratio: 3/4;
    background: #0a0a0c;
    overflow: hidden;
}
.page-thumb-container img { width: 100%; height: 100%; object-fit: cover; }

.page-select-checkbox {
    position: absolute; top: 6px; left: 6px;
    z-index: 2;
    width: 14px; height: 14px;
    cursor: pointer;
    accent-color: var(--accent);
}

.page-card-status {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.page-card-status.unscanned       { background: rgba(95,99,104,0.5); color: #d2d4d7; }
.page-card-status.failed          { background: rgba(242,139,130,0.25); color: var(--red); }
.page-card-status.running         { background: rgba(253,214,99,0.25); color: var(--yellow); animation: pulse 1.5s infinite; }
.page-card-status.completed       { background: rgba(129,201,149,0.25); color: var(--green); }
.page-card-status.completed_review { background: rgba(138,180,248,0.25); color: var(--accent); }
.page-card-status.empty           { background: rgba(252,173,112,0.25); color: var(--orange); }

@keyframes pulse { 0%,100% { opacity:.6 } 50% { opacity:1 } }

.page-card-info { padding: 6px 8px; }
.page-card-info .market-title {
    font-size: 0.75rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page-card-info .page-number {
    font-size: 0.625rem; color: var(--text-3); margin-top: 1px;
}

/* Empty state */
.empty-state {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
}
.empty-icon { font-size: 2rem; margin-bottom: 8px; }
.empty-state h3 { font-size: 0.9375rem; color: var(--text-2); margin-bottom: 4px; }
.empty-state p { font-size: 0.8125rem; }

/* ── Modal ──────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-container {
    position: relative;
    width: 90vw; max-width: 900px;
    max-height: 85vh;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.2s ease forwards;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-header h3 { font-size: 0.9375rem; font-weight: 600; }
.modal-close {
    background: none; border: none;
    color: var(--text-3);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: var(--text); }

.modal-body {
    display: flex;
    overflow: hidden;
    flex: 1;
}
.modal-image-col {
    width: 40%;
    flex-shrink: 0;
    background: #08090a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.modal-image-col img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.modal-data-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
    gap: 12px;
}
.modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-section-header h4 { font-size: 0.8125rem; font-weight: 600; }
.modal-table-wrap { flex: 1; overflow-y: auto; }

/* Table inputs */
.data-table input[type="text"],
.data-table input[type="number"] {
    background: transparent;
    border: 1px solid transparent;
    padding: 3px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
    width: 100%;
    box-shadow: none;
}
.data-table input:focus {
    background: var(--bg-input);
    border-color: var(--accent);
    box-shadow: none;
}
.data-table input[type="checkbox"] {
    width: 14px; height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .sync-split { grid-template-columns: 1fr; }
    .modal-container { max-width: 95vw; }
}

@media (max-width: 768px) {
    body { overflow: auto; }
    .hamburger-btn { display: flex; align-items: center; }

    .sidebar-nav {
        position: fixed;
        top: 48px; bottom: 0; left: -200px;
        width: 200px;
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0,0,0,0.4);
        transition: left 0.2s ease;
    }
    .sidebar-nav.open { left: 0; }

    .app-body { flex-direction: column; height: auto; min-height: calc(100vh - 48px); }
    .main-content { overflow: visible; }
    .view-panel { overflow: visible; }
    .view-body { overflow: visible; }

    .view-topbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }

    .ai-toolbar { flex-direction: column; align-items: flex-start; padding: 10px 12px; }
    .ai-toolbar-actions { width: 100%; justify-content: flex-end; }

    .settings-row { flex-direction: column; }

    .metric-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .metric-value { font-size: 1.2rem; }

    .pages-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }

    .view-body.padded { padding: 12px; }

    .modal-body { flex-direction: column; }
    .modal-image-col { width: 100%; max-height: 200px; }
    .modal-container { width: 95vw; max-height: 90vh; }
}

/* ── Scheduler Styles ─────────────────────── */
.scheduler-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    align-items: start;
}
.scheduler-settings-card, .scheduler-status-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.scheduler-settings-card h3, .scheduler-status-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    color: var(--text);
}
.form-row-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.switch-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8125rem !important;
    color: var(--text-2) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.switch-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.scheduler-status-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}
.status-label {
    color: var(--text-2);
}
.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.idle {
    background: rgba(255,255,255,0.08);
    color: var(--text-2);
}
.status-badge.running {
    background: rgba(138,180,248,0.15);
    color: var(--accent);
}
.status-badge.completed {
    background: rgba(129,201,149,0.15);
    color: var(--green);
}
.status-badge.error {
    background: rgba(242,139,130,0.15);
    color: var(--red);
}

@media (max-width: 900px) {
    .scheduler-layout {
        grid-template-columns: 1fr;
    }
}

.market-name-link {
    transition: color var(--ease);
}
.market-name-link:hover {
    color: var(--accent) !important;
}
