:root {
    --bz-primary: #6366f1;
    --bz-primary-hover: #4f46e5;
    --bz-secondary: #64748b;
    --bz-success: #22c55e;
    --bz-warning: #eab308;
    --bz-danger: #ef4444;
    --bz-bg: #0f172a;
    --bz-surface: #1e293b;
    --bz-surface2: #334155;
    --bz-border: rgba(255, 255, 255, 0.08);
    --bz-text: #f8fafc;
    --bz-muted: #94a3b8;
    --bz-sidebar-w: 260px;
    --bz-radius: 12px;
    --bz-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --bz-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bz-bg);
    color: var(--bz-text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--bz-sidebar-w);
    background: var(--bz-surface);
    border-right: 1px solid var(--bz-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s;
    box-shadow: var(--bz-shadow-sm);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--bz-border);
}

.sidebar-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bz-primary), var(--bz-primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    color: var(--bz-text);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav .nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bz-muted);
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--bz-text);
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.nav-btn:hover {
    background: var(--bz-surface2);
    color: var(--bz-primary);
}

.nav-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--bz-primary);
    font-weight: 600;
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--bz-primary);
}

.nav-btn i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--bz-muted);
    transition: color 0.2s;
}

.nav-btn:hover i, .nav-btn.active i {
    color: var(--bz-primary);
}

/* MAIN */
.main-area {
    margin-left: var(--bz-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--bz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bz-surface);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--bz-shadow-sm);
}

.topbar h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--bz-text);
}

.content-area {
    padding: 2rem;
    flex: 1;
}

/* CARDS */
.bz-card {
    background: var(--bz-surface);
    border: 1px solid var(--bz-border);
    border-radius: var(--bz-radius);
    box-shadow: var(--bz-shadow-sm);
    transition: box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

.bz-card:hover {
    box-shadow: var(--bz-shadow);
}

.bz-card-body {
    padding: 1.5rem;
}

.bz-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bz-border);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
    border-radius: calc(var(--bz-radius) - 1px) calc(var(--bz-radius) - 1px) 0 0;
}

.stat-card {
    background: var(--bz-surface);
    border: 1px solid var(--bz-border);
    border-radius: var(--bz-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--bz-shadow-sm);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bz-shadow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bz-text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--bz-muted);
    font-weight: 500;
}

/* BUTTONS */
.btn-bz {
    background: var(--bz-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-bz:hover {
    background: var(--bz-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-bz-outline {
    background: transparent;
    color: var(--bz-primary);
    border: 1px solid var(--bz-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-bz-outline:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--bz-primary-hover);
}

.btn-bz-danger {
    background: var(--bz-danger);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bz-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.btn-bz-green {
    background: var(--bz-success);
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-bz-green:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(34, 197, 154, 0.3);
}

/* FORMS */
.bz-input, .bz-select, .bz-textarea {
    background: var(--bz-surface2);
    border: 1px solid var(--bz-border);
    color: var(--bz-text);
    border-radius: 0.5rem;
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
    width: 100%;
    transition: border 0.2s, box-shadow 0.2s;
}

.bz-input::placeholder, .bz-textarea::placeholder {
    color: var(--bz-muted);
}

.bz-input:focus, .bz-select:focus, .bz-textarea:focus {
    outline: none;
    border-color: var(--bz-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

label.bz-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bz-text);
    margin-bottom: 0.4rem;
    display: block;
}

/* TABLE */
.bz-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.bz-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bz-muted);
    padding: 1rem;
    border-bottom: 2px solid var(--bz-border);
    text-align: left;
    background: rgba(255,255,255,0.01);
}

.bz-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bz-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.bz-table tr:last-child td {
    border-bottom: none;
}

.bz-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* STATUS BADGE */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background: var(--bz-success);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.status-dot.red {
    background: var(--bz-danger);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.status-dot.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .topbar { padding: 1rem; }
    .content-area { padding: 1rem; }
}
