* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: #ffffff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand strong {
    display: block;
    font-size: 16px;
}

.sidebar-brand span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav a {
    padding: 11px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.2s ease;
}

.sidebar-nav a:hover {
    background: #1e293b;
    color: #ffffff;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.topbar span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #6b7280;
}

.page-content {
    padding: 28px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.page-header p {
    margin: 6px 0 0;
    color: #6b7280;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card,
.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.card-value {
    display: block;
    font-size: 24px;
    color: #111827;
}

.card-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.content-card h3 {
    margin-top: 0;
}

.btn-primary,
.btn-secondary,
.btn-light,
button {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-secondary {
    background: #0f172a;
    color: #ffffff;
}

.btn-light {
    background: #e5e7eb;
    color: #111827;
}

.form-control {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-radius: 0;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 18px;
    }

    .topbar {
        padding: 0 18px;
    }
}