:root {
    --eo-sidebar: #6b1d42;
    --eo-sidebar-admin: #3f1129;
    --eo-primary: #b0245f;
    --eo-primary-hover: #931d4f;
    --eo-accent: #e8478b;
    --eo-bg: #f7f2f5;
    --eo-border: #eadde3;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--eo-bg);
    color: #333;
}

.sidebar {
    min-height: 100vh;
    background-color: var(--eo-sidebar);
    padding-top: 1rem;
    flex-shrink: 0;
    width: 250px;
}
.sidebar.admin { background-color: var(--eo-sidebar-admin); }
.flex-grow-1 { min-width: 0; }

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}
.sidebar .nav-link svg { flex-shrink: 0; }

.sidebar-brand {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.25rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.15;
}
.sidebar-brand small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.75; }

.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--eo-border);
    padding: 0.75rem 1.5rem;
}

.ico { width: 1em; height: 1em; vertical-align: -0.125em; }

.stat-card { border: none; border-radius: 10px; }
.stat-card .stat-value { font-size: 2rem; font-weight: bold; }
.stat-card .stat-label { font-size: 0.85rem; opacity: 0.88; }
.bg-eo { background-color: var(--eo-primary) !important; }
.bg-eo-dark { background-color: var(--eo-sidebar) !important; }
.text-eo { color: var(--eo-primary) !important; }

.btn-eo { background-color: var(--eo-primary); border-color: var(--eo-primary); color: #fff; }
.btn-eo:hover, .btn-eo:focus { background-color: var(--eo-primary-hover); border-color: var(--eo-primary-hover); color: #fff; }
.btn-outline-eo { border-color: var(--eo-primary); color: var(--eo-primary); }
.btn-outline-eo:hover { background-color: var(--eo-primary); color: #fff; }
.btn-icon { display: inline-flex; align-items: center; gap: 0.35rem; }

.badge-success { background-color: #28a745; }
.badge-error { background-color: #dc3545; }
.badge-partial { background-color: #fd7e14; }
.badge-running { background-color: #ffc107; color: #333; }
.badge-queued { background-color: #0dcaf0; color: #08323b; }
.badge-idle { background-color: #6c757d; }

.api-key-text {
    font-family: Consolas, monospace;
    font-size: 0.78rem;
    word-break: break-all;
    background: #f8f9fa;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.table-sm td, .table-sm th { vertical-align: middle; }
.table-clickable tbody tr { cursor: pointer; }
.card { border-color: var(--eo-border); }
.card-header { background: #fff; border-bottom-color: var(--eo-border); font-weight: 600; }

.entity-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.entity-tabs .btn { font-size: 0.82rem; }
.entity-tabs .btn .count { opacity: 0.75; font-weight: 400; margin-left: 0.25rem; }

.json-view {
    background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: 6px;
    font-family: Consolas, monospace; font-size: 0.8rem; max-height: 65vh; overflow: auto; white-space: pre;
}
.json-view .k { color: #9cdcfe; }
.json-view .s { color: #ce9178; }
.json-view .n { color: #b5cea8; }
.json-view .b { color: #569cd6; }

.sync-step { font-size: 0.75rem; color: #6c757d; }
.login-bg { background: linear-gradient(135deg, #5a1636 0%, #b0245f 100%); min-height: 100vh; }
.login-bg.admin { background: linear-gradient(135deg, #2a0a1b 0%, #6b1d42 100%); }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: #6c757d; }
.empty-state svg { width: 40px; height: 40px; opacity: 0.5; margin-bottom: 0.5rem; }

@media (max-width: 767px) {
    .sidebar { width: 64px !important; }
    .sidebar .nav-link span, .sidebar-brand span, .sidebar .logout-label { display: none; }
    .sidebar .nav-link { justify-content: center; padding: 0.8rem 0; }
    .sidebar-brand { justify-content: center; padding: 0.25rem 0 1rem; }
}
