* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef3f8;
    color: #172033;
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 25px;
    color: #ffffff;
    background: #102a43;
}

.brand {
    font-size: 22px;
    font-weight: bold;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: calc(100vh - 65px);
}

.sidebar {
    padding: 20px 12px;
    background: #ffffff;
    border-right: 1px solid #dce3ea;
}

.sidebar a {
    display: block;
    margin-bottom: 7px;
    padding: 13px 15px;
    text-decoration: none;
    border-radius: 9px;
}

.sidebar a:hover,
.sidebar a.active {
    color: #ffffff;
    background: #1485c4;
}

.content {
    padding: 28px;
}

.card {
    padding: 24px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.cards {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.stat-number {
    margin-top: 10px;
    font-size: 35px;
    font-weight: bold;
}

.form-box {
    width: 100%;
    max-width: 750px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 7px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border: 1px solid #abb8c5;
    border-radius: 9px;
}

textarea {
    min-height: 110px;
}

button,
.button {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 18px;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    background: #1485c4;
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

.button-secondary {
    background: #607080;
}

.button-danger {
    background: #c63c3c;
}

.alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 9px;
}

.alert-success {
    color: #165c31;
    background: #def5e7;
}

.alert-error {
    color: #922222;
    background: #ffe1e1;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

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

th {
    background: #f3f6f9;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    font-size: 13px;
    border-radius: 20px;
}

.badge-success {
    color: #146533;
    background: #dff4e7;
}

.badge-danger {
    color: #922222;
    background: #ffe0e0;
}

.badge-warning {
    color: #805300;
    background: #fff0c7;
}

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

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #dce3ea;
    }

    .content {
        padding: 15px;
    }
}