* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.topbar {
    background: #123f72;
    color: white;
    padding: 14px 20px;
}

.topbar-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand {
    font-size: 21px;
    font-weight: 700;
}

.user-info {
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

.page-title {
    margin-bottom: 20px;
}

.page-title h1 {
    margin: 0 0 5px;
    font-size: 25px;
}

.page-title p {
    margin: 0;
    color: #64748b;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 14px rgba(0,0,0,.07);
}

.card h3 {
    margin-top: 0;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    padding: 11px 17px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: #1769aa;
    color: white;
}

.btn-success {
    background: #16834b;
    color: white;
}

.btn-danger {
    background: #c62828;
    color: white;
}

.btn-light {
    background: white;
    color: #123f72;
}

.form-box {
    max-width: 600px;
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,.07);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd4df;
    border-radius: 7px;
    font-size: 15px;
}

.alert {
    padding: 12px 15px;
    border-radius: 7px;
    margin-bottom: 15px;
}

.alert-success {
    background: #e7f7ee;
    color: #146c43;
}

.alert-danger {
    background: #fdeaea;
    color: #a61b1b;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #edf3f9;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 28px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo h1 {
    color: #123f72;
    margin-bottom: 5px;
}

.login-logo p {
    color: #64748b;
    margin: 0;
}

@media(max-width: 800px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title h1 {
        font-size: 21px;
    }

    .container {
        margin-top: 18px;
    }

    .btn {
        min-height: 44px;
    }
}