:root {
    --eliot-sidebar-width: 240px;
    --eliot-sidebar-bg: #0f172a;
    --eliot-sidebar-fg: #cbd5e1;
    --eliot-sidebar-active-bg: #1e293b;
    --eliot-sidebar-active-fg: #ffffff;
    --eliot-content-bg: #f4f6f9;
    --eliot-topbar-bg: #ffffff;
    --eliot-brand: #6366f1;
}

html, body {
    height: 100%;
}

body {
    background: var(--eliot-content-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
}

/* ---------- Shell ---------- */

.eliot-shell {
    display: flex;
    min-height: 100vh;
}

.eliot-sidebar {
    width: var(--eliot-sidebar-width);
    background: var(--eliot-sidebar-bg);
    color: var(--eliot-sidebar-fg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.eliot-brand {
    padding: 1.25rem 1.25rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.eliot-brand i {
    color: var(--eliot-brand);
    font-size: 1.4rem;
}

.eliot-nav {
    flex: 1;
    padding: .75rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .125rem;
}

.eliot-nav a {
    color: var(--eliot-sidebar-fg);
    text-decoration: none;
    padding: .625rem .875rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .925rem;
    transition: background .15s ease, color .15s ease;
}

.eliot-nav a i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.eliot-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.eliot-nav a.active {
    background: var(--eliot-sidebar-active-bg);
    color: var(--eliot-sidebar-active-fg);
    font-weight: 500;
}

.eliot-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.eliot-sidebar-footer small {
    color: #64748b;
}

/* ---------- Main ---------- */

.eliot-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eliot-topbar {
    background: var(--eliot-topbar-bg);
    border-bottom: 1px solid #e5e7eb;
    padding: .875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.eliot-page-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.eliot-topbar-right {
    display: flex;
    align-items: center;
}

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

/* ---------- Cards ---------- */

.eliot-stat-card {
    border: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    border-radius: .75rem;
}

.eliot-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.card {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.card-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
}

/* ---------- Auth ---------- */

.eliot-auth-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.eliot-auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.eliot-auth-card {
    border: 0;
    border-radius: 1rem;
}

.eliot-auth-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .eliot-sidebar {
        position: fixed;
        left: -100%;
        z-index: 1040;
        transition: left .2s ease;
    }

    .eliot-sidebar.open {
        left: 0;
    }

    .eliot-main {
        width: 100%;
    }
}
