* { box-sizing: border-box; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f4f7;
    margin: 0;
    padding: 24px;
    color: #222;
}
.wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
h1 { margin-top: 0; font-size: 22px; }
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.btn {
    display: inline-block;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}
.btn.secondary { background: #6b7280; }
.btn.danger { background: #dc2626; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}
th, td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}
th { background: #f9fafb; color: #444; }
tr:hover { background: #fafafa; }
.actions a { margin-right: 10px; font-size: 13px; text-decoration: none; }
.actions a.edit { color: #2563eb; }
.actions a.delete { color: #dc2626; }
.card {
    display: block;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #222;
}
.card:hover { border-color: #2563eb; background: #f5f8ff; }
.card b { color: #2563eb; }
.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0;
}
.success {
    background: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0;
}
.empty { text-align: center; color: #888; padding: 30px 0; }
form.form-box label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #444;
}
form.form-box input {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
form.form-box .buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
