
/* --- Header --- */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: 24px;
}

.page-title {
    color: #1F2937;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

/* --- Main Cards --- */
.main-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: #059669;
        font-size: 1.2rem;
    }

/* --- Form Inputs --- */
.form-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.form-inp {
    background-color: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #1F2937;
    width: 100%;
    transition: all 0.2s;
}

    .form-inp::placeholder {
        color: #9CA3AF;
        font-weight: 400;
    }

    .form-inp:focus {
        border-color: #3B82F6;
        outline: none;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

select.form-inp {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

/* --- Buttons --- */
.btn-cancel {
    background-color: #ffffff;
    color: #4B5563;
    border: 1px solid #E5E7EB;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    margin-right: 12px;
    transition: 0.2s;
}

    .btn-cancel:hover {
        background-color: #F3F4F6;
    }

.btn-save {
    background-color: #3B82F6;
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

    .btn-save:hover {
        background-color: #2563EB;
    }

/* --- Table Controls --- */
.table-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    position: relative;
}

    .search-box i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        font-size: 0.85rem;
    }

    .search-box input {
        padding-left: 32px;
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        background-color: #F8FAFC;
        font-size: 0.8rem;
        padding-top: 8px;
        padding-bottom: 8px;
        width: 220px;
    }

.btn-outline-green {
    border: 1px solid #10B981;
    color: #10B981;
    background-color: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

    .btn-outline-green:hover {
        background-color: #ECFDF5;
    }

/* --- Data Table --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th {
        background-color: #F8FAFC;
        color: #4B5563;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 12px 16px;
        text-transform: capitalize;
        border-bottom: 1px solid #E5E7EB;
        border-top: 1px solid #E5E7EB;
        text-align: left;
    }

        .data-table th:first-child {
            border-top-left-radius: 8px;
            border-left: 1px solid #E5E7EB;
        }

        .data-table th:last-child {
            border-top-right-radius: 8px;
            border-right: 1px solid #E5E7EB;
            text-align: center;
        }

    .data-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #F3F4F6;
        font-size: 0.85rem;
        color: #1F2937;
        font-weight: 500;
        vertical-align: middle;
    }

    .data-table tr:hover td {
        background-color: #F8FAFC;
    }

/* Action Icons */
.action-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

    .action-icons i {
        font-size: 1rem;
        cursor: pointer;
    }

.icon-del {
    color: #EF4444;
}

.icon-edit {
    color: #3B82F6;
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #4B5563;
    font-weight: 500;
}

    .items-per-page select {
        border: 1px solid #E5E7EB;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }

.pagination-controls {
    display: flex;
    gap: 6px;
}

.page-btn {
    border: 1px solid #E5E7EB;
    background-color: #ffffff;
    color: #4B5563;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

    .page-btn.active {
        background-color: #F3F4F6;
        color: #1F2937;
        font-weight: 700;
    }

    .page-btn.ellipsis {
        border: none;
        background: transparent;
        cursor: default;
    }


/* --- Badges --- */
.badge-director {
    background-color: #FCE7F3; /* Light pink/purple */
    color: #BE185D; /* Dark pink/purple text */
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
}

/* --- Main Cards --- */
.main-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    padding: 24px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: #059669;
        font-size: 1.2rem;
    }

/* --- Form Inputs (Borderless Flat Design) --- */
.form-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.form-inp {
    background-color: #F3F4F6; /* Light gray background */
    border: 1px solid transparent; /* No visible border initially */
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #1F2937;
    width: 100%;
    transition: all 0.2s;
}

    .form-inp::placeholder {
        color: #9CA3AF;
        font-weight: 500;
    }

    .form-inp:focus {
        border-color: #3B82F6;
        outline: none;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Custom Select Arrow */
select.form-inp {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

/* Custom Status Box */
.status-toggle-box {
    background-color: #D1FAE5; /* Light Green */
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.status-toggle-text {
    display: flex;
    flex-direction: column;
}

    .status-toggle-text strong {
        font-size: 0.85rem;
        font-weight: 700;
        color: #065F46;
        line-height: 1.2;
    }

    .status-toggle-text small {
        font-size: 0.65rem;
        color: #6B7280;
    }

/* CSS Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-bottom: 0;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #10B981;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

input:checked + .slider {
    background-color: #10B981;
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

/* --- Footer Buttons --- */
.footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel {
    background-color: #ffffff;
    color: #059669; /* Green text */
    border: 1px solid #10B981; /* Green border */
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

    .btn-cancel:hover {
        background-color: #ECFDF5;
    }

.btn-save {
    background-color: #166534; /* Dark green */
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

    .btn-save:hover {
        background-color: #14532D;
    }
