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

.page {
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #eef3ff;
    border: 1px solid #d6e0ff;
    border-radius: 10px;
    margin-bottom: 20px;
}

h1, h2 {
    margin-top: 0;
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    max-width: 420px;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    box-sizing: border-box;
}

button,
.button-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #2155cc;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
}

.button-link.secondary,
button.secondary {
    background: #6c757d;
}

.button-link.danger,
button.danger {
    background: #c62828;
}

nav a {
    margin-right: 12px;
}

.flash {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.flash.success {
    background: #e8f7ec;
    border: 1px solid #87d7a0;
}

.flash.error {
    background: #fdeaea;
    border: 1px solid #ef9a9a;
}

.card {
    background: #fafcff;
    border: 1px solid #dde6f3;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    border: 1px solid #cfd8e3;
    padding: 10px;
    text-align: left;
}

th {
    background: #eef3ff;
}

.note {
    color: #495057;
    font-size: 14px;
}

.inline-form {
    display: inline;
}
