* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: #f3f4f6;
}
a { color: #1d4ed8; }
.container, .dashboard {
    max-width: 1180px;
    margin: 28px auto;
    padding: 28px;
    background: #fff;
    border-radius: 12px;
}
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a { margin-right: 14px; text-decoration: none; }
label { display: block; margin: 14px 0 6px; font-weight: 700; }
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 15px;
}
textarea { min-height: 90px; resize: vertical; }
button, .button {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    padding: 10px 15px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.button-secondary { background: #475569; }
.button-danger { background: #b91c1c; }
.button-success { background: #166534; }
.alert {
    padding: 12px;
    margin: 12px 0;
    border-radius: 7px;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}
th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
th { background: #f8fafc; }
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.full { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
}
.pagination .current { background: #1d4ed8; color: #fff; }
.small { color: #64748b; font-size: 14px; }
@media (max-width: 760px) {
    .grid { grid-template-columns: 1fr; }
    .header-inner { align-items: flex-start; gap: 12px; flex-direction: column; }
}
