* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}
.container { max-width: 1200px; margin: 0 auto; padding: 28px 18px 50px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1 { margin: 0 0 6px; font-size: 28px; }
.header p { margin: 0; color: #6b7280; }
.card { background: white; border-radius: 14px; box-shadow: 0 5px 20px rgba(0,0,0,.07); padding: 18px; margin-bottom: 18px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.toolbar input { flex: 1; }
.summary { color: #6b7280; }
input { width: 100%; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 9px; outline: none; font-size: 14px; }
input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,.10); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
th { background: #f9fafb; font-size: 13px; color: #4b5563; }
tbody tr:hover { background: #fafafa; }
a { color: #4f46e5; text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.action-col { width: 160px; }
.actions { display: flex; gap: 7px; }
.btn { border: 0; border-radius: 8px; padding: 9px 13px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-edit { background: #e0e7ff; color: #3730a3; }
.btn-delete { background: #fee2e2; color: #b91c1c; }
.empty { text-align: center; color: #9ca3af; padding: 40px; }
.modal { position: fixed; inset: 0; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 15px; z-index: 100; }
.modal.hidden { display: none; }
.modal-content { width: 100%; max-width: 520px; background: white; border-radius: 14px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.modal-header h2 { margin: 0; font-size: 20px; }
.close { border: 0; background: transparent; font-size: 28px; cursor: pointer; color: #6b7280; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.message { min-height: 20px; color: #b91c1c; font-size: 13px; margin-bottom: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 13px 17px; background: #111827; color: #fff; border-radius: 9px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #166534; }
.toast.error { background: #b91c1c; }
@media (max-width: 700px) {
    .header { align-items: flex-start; flex-direction: column; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .btn-primary { align-self: flex-start; }
}
