:root {
    --sidebar-bg: #0f1117;
    --sidebar-hover: #1a1d27;
    --sidebar-border: #252836;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
}

* { box-sizing: border-box; }

body.panel-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.panel-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
}

.panel-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.15s ease;
}

.panel-sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #e2e8f0;
}

.panel-sidebar-link.active {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
}

.panel-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.panel-stat-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}

.panel-table tbody tr {
    transition: background 0.1s ease;
}

.panel-table tbody tr:hover {
    background: #f8fafc;
}

.panel-tab {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.panel-tab:hover { color: #334155; }

.panel-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.panel-toggle {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    background: #cbd5e1;
    border-radius: 9999px;
    transition: background 0.2s;
    cursor: pointer;
}

.panel-toggle.on { background: var(--accent); }

.panel-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.panel-toggle.on::after { transform: translateX(1.25rem); }

[x-cloak] { display: none !important; }
