﻿
/* ======================= GLOBAL ======================= */
body {
    font-family: 'Segoe UI', sans-serif;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 22px;
    color: #0f172a;
}

/* ======================= FILTER BAR ======================= */

.filter-bar {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    align-items: flex-end;
    border: 1px solid #e2e8f0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .filter-item label {
        font-size: 14px;
        font-weight: 600;
        color: #475569;
    }

    .filter-item input {
        padding: 10px 12px;
        width: 200px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
        background: white;
        font-size: 14px;
        transition: 0.2s;
    }

        .filter-item input:focus {
            border-color: #3b82f6;
            outline: none;
            box-shadow: 0 0 0 2px #bfdbfe;
        }

/* ======================= BUTTONS ======================= */

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.btn-filter {
    background: #2563eb;
    color: white;
}

    .btn-filter:hover {
        background: #1d4ed8;
    }

.btn-new {
    background: #16a34a;
    color: white;
}

    .btn-new:hover {
        background: #15803d;
    }

.btn-export {
    background: #f59e0b;
    color: white;
}

    .btn-export:hover {
        background: #d97706;
    }

.btn-view {
    background: #0ea5e9;
    color: white;
    padding: 6px 12px !important;
}

.btn-edit {
    background: #8b5cf6;
    color: white;
    padding: 6px 12px !important;
}

.btn-close {
    background: #ef4444;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* ======================= TABLE ======================= */

.table-wrapper {
    background: white;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

table.tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

    table.tbl thead tr {
        background: #f8fafc;
        border-bottom: 2px solid #e2e8f0;
    }

    table.tbl th {
        padding: 14px;
        text-align: left;
        font-weight: 700;
        font-size: 14px;
        color: #1e293b;
    }

    table.tbl td {
        padding: 12px 14px;
        font-size: 14px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
    }

    table.tbl tr:hover {
        background: #f8fafc;
    }

.status-active {
    color: #16a34a;
    font-weight: 700;
}

.status-inactive {
    color: #dc2626;
    font-weight: 700;
}
.status-advance {
    color: #0ea5e9;
    font-weight: 700;
}


/* ======================= PAGINATION ======================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 20px;
}

    .pagination .pg-btn {
        padding: 8px 14px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        background: white;
        cursor: pointer;
    }

        .pagination .pg-btn:hover {
            background: #e2e8f0;
        }

    .pagination .active {
        background: #2563eb;
        color: white;
        border-color: #1d4ed8;
    }

/* ======================= MODAL ======================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.25s ease-in-out;
}

.modal-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 32px;
    border-radius: 18px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08), 0 6px 16px rgba(0,0,0,0.05);
    transform: translateY(-12px);
    animation: slideUp 0.28s ease-out forwards;
}

    .modal-box h3 {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 16px;
        color: #0f172a;
    }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-close-btn,
.modal-close-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 22px;
    color: #64748b;
    transition: 0.2s;
}

    .modal-close-icon:hover,
    .modal-close-btn:hover {
        color: #ef4444;
    }

/* ======================= ANIMATIONS ======================= */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
