/* =============================
   GLOBAL RESET
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* =============================
   CONTAINER
============================= */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 30px auto;
}

/* =============================
   HEADER
============================= */
.header {
    background: #1f2937;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 20px;
}

/* =============================
   BUTTON
============================= */
button {
    background: #2563eb;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* =============================
   FORM
============================= */
input, select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 250px;
}

/* =============================
   TABLE
============================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #111827;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f9fafb;
}

/* =============================
   STATUS BADGE
============================= */
.badge-green { color: #16a34a; font-weight: bold; }
.badge-red { color: #dc2626; font-weight: bold; }
.badge-orange { color: #ea580c; font-weight: bold; }
.badge-blue { color: #2563eb; font-weight: bold; }

/* =============================
   LINK
============================= */
a {
    text-decoration: none;
    color: #2563eb;
}

a:hover {
    text-decoration: underline;
}

/* =============================
   CARD
============================= */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* =============================
   FORM GRID
============================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
}

/* Full width element */
.full-width {
    grid-column: span 2;
}

/* Button spacing */
.form-actions {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   MODAL
============================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
    z-index: 9999;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 95%;
    max-width: 520px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(-10px);
    transition: 0.2s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.modal-title {
    margin-bottom: 20px;
}

.modal-actions {
    margin-top: 20px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}
.badge-green::before {
    background: #16a34a;
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
}
.badge-orange::before {
    background: #ea580c;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}
.badge-blue::before {
    background: #2563eb;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}
.badge-red::before {
    background: #dc2626;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 56px;
}

.btn-edit {
    color: #2563eb;
    font-weight: 600;
}

.btn-delete {
    color: #dc2626;
    font-weight: 600;
}

.btn-edit:hover,
.btn-delete:hover {
    text-decoration: underline;
}

