* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #0f172a;
}

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

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

.sidebar {
    width: 260px;
    background: #0f172a;
    color: white;
    padding: 28px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 35px;
}

.nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 700;
}

.nav a:hover,
.nav a.active {
    background: #155bb5;
    color: white;
}

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

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

h1 {
    margin: 0;
    font-size: 34px;
}

.card {
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 15px 40px rgba(15,23,42,.06);
    border: 1px solid #e5e7eb;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.stat {
    font-size: 36px;
    font-weight: 900;
    color: #155bb5;
}

.btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #155bb5;
    color: white;
}

.btn-light {
    background: #e2e8f0;
    color: #0f172a;
}

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

th, td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0efff;
    color: #155bb5;
    font-weight: 800;
    font-size: 13px;
}

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

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
}

textarea {
    min-height: 120px;
}

label {
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.full {
    grid-column: 1 / -1;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

@media(max-width: 900px) {
    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
    }

    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}