
:root {
    --bg: #f5f7fb;
    --sidebar: #101828;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #667085;
    --primary: #2563eb;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: white;
    padding: 24px 18px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 12px;
    color: #98a2b3;
    margin-bottom: 28px;
}

.nav a {
    display: block;
    color: #d0d5dd;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.nav a:hover {
    background: #1d2939;
    color: white;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
}

.badge {
    background: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.card h3 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.value {
    margin-top: 12px;
    font-size: 26px;
    font-weight: 800;
}

.actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
}

.btn.secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.table-card {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background: #f9fafb;
    color: #475467;
    font-size: 13px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tr:hover td {
    background: #f9fafb;
}

.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; }
    .grid { grid-template-columns: 1fr; }
}
