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

:root {
    --bg: #06111f;
    --bg-soft: #0b1728;
    --panel: #0f1d31;
    --panel-2: #13243c;
    --border: rgba(255,255,255,0.08);
    --text: #e8eefc;
    --muted: #94a3b8;
    --green: #22c55e;
    --yellow: #fbbf24;
    --red: #ef4444;
    --blue: #3b82f6;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 25%),
        radial-gradient(circle at top right, rgba(34,197,94,0.08), transparent 20%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.sidebar {
    width: 260px;
    background: rgba(9, 18, 31, 0.92);
    border-right: 1px solid var(--border);
    padding: 24px 18px;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 6px;
}

.nav-section {
    margin-top: 18px;
}

.nav-title {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.25);
}

.main {
    flex: 1;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.topbar h1 {
    font-size: 28px;
    font-weight: 800;
}

.topbar p {
    color: var(--muted);
    margin-top: 6px;
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-green {
    background: rgba(34,197,94,0.15);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.25);
}

.badge-blue {
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.25);
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
}

.btn:hover {
    background: rgba(255,255,255,0.08);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.card {
    background: linear-gradient(180deg, rgba(19,36,60,0.98), rgba(12,24,41,0.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.card-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.card-value {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-note {
    color: var(--muted);
    font-size: 13px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
}

.table-like {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.row-item strong {
    display: block;
    margin-bottom: 4px;
}

.row-item span {
    color: var(--muted);
    font-size: 13px;
}

.alert-item {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.alert-warning {
    border-color: rgba(251,191,36,0.25);
    background: rgba(251,191,36,0.08);
}

.alert-danger {
    border-color: rgba(239,68,68,0.25);
    background: rgba(239,68,68,0.08);
}

.alert-success {
    border-color: rgba(34,197,94,0.25);
    background: rgba(34,197,94,0.08);
}

@media (max-width: 1100px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}