:root {
    --bclm-primary: #4f46e5;
    --bclm-primary-dark: #3730a3;
    --bclm-bg: #f5f6fa;
    --bclm-sidebar-bg: #111827;
    --bclm-sidebar-text: #9ca3af;
    --bclm-sidebar-active: #4f46e5;
}

body {
    background-color: var(--bclm-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.topbar {
    background: linear-gradient(90deg, var(--bclm-primary-dark), var(--bclm-primary));
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 1030;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 56px);
}

.sidebar {
    width: 230px;
    flex-shrink: 0;
    background: var(--bclm-sidebar-bg);
    min-height: calc(100vh - 56px);
}

.sidebar-link {
    color: var(--bclm-sidebar-text) !important;
    border-radius: .5rem;
    padding: .65rem 1rem;
    margin-bottom: .2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: background .15s ease, color .15s ease;
}

.sidebar-link i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff !important;
}

.sidebar-link.active {
    background: var(--bclm-sidebar-active);
    color: #fff !important;
}

.content {
    flex-grow: 1;
    min-width: 0;
}

.card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.stat-card {
    border-radius: .75rem;
    color: #fff;
    padding: 1.25rem 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
}

.stat-card .stat-label {
    opacity: .85;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bg-grad-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-grad-green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-grad-red    { background: linear-gradient(135deg, #f87171, #b91c1c); }
.bg-grad-amber  { background: linear-gradient(135deg, #fbbf24, #b45309); }
.bg-grad-blue   { background: linear-gradient(135deg, #38bdf8, #0369a1); }

.table thead th {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom-width: 1px;
}

code.license-key {
    background: #eef2ff;
    color: var(--bclm-primary-dark);
    padding: .2rem .5rem;
    border-radius: .35rem;
    font-weight: 600;
}

.snippet-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: .6rem;
    padding: 1rem;
    font-size: .82rem;
    max-height: 480px;
    overflow: auto;
}

@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }
    .sidebar-link span {
        display: none;
    }
}
