* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
}

.navbar {
    background: #232f3e;
    color: #fff;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar img { width: 32px; }
.navbar h1 { font-size: 20px; font-weight: 600; color: #ff9900; }
.navbar span { font-size: 14px; color: #ccc; }

.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 { font-size: 22px; color: #232f3e; }

.btn {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary  { background: #ff9900; color: #fff; }
.btn-edit     { background: #232f3e; color: #fff; padding: 6px 12px; font-size: 13px; }
.btn-delete   { background: #e53935; color: #fff; padding: 6px 12px; font-size: 13px; }
.btn-cancel   { background: #ccc; color: #333; }

/* Table */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
thead { background: #232f3e; color: #fff; }
thead th { padding: 13px 16px; text-align: left; font-size: 14px; }
tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
tbody tr:hover { background: #fafafa; }
tbody td { padding: 12px 16px; font-size: 14px; }

.badge {
    background: #fff3cd;
    color: #856404;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 15px;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: 12px;
    width: 480px;
    max-width: 95%;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.modal h3 { font-size: 18px; margin-bottom: 20px; color: #232f3e; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #555; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #ff9900; }
.form-group textarea { resize: vertical; min-height: 70px; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #232f3e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 200;
}
.toast.show { opacity: 1; }
