/* ========== EMPLOYEE TABLE STYLES ========== */

/* Filter Card */
.employee-filter-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

body.dark-mode .employee-filter-card {
    background: #252525;
    border-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Filter Title */
.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .filter-title {
    color: #e0e0e0;
}

.filter-title i {
    color: #E72027;
    font-size: 22px;
}

/* Filter Inputs */
.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    display: block;
}

body.dark-mode .filter-group label {
    color: #e0e0e0;
}

.filter-group .form-control,
.filter-group .form-select {
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

body.dark-mode .filter-group .form-control,
body.dark-mode .filter-group .form-select {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: #E72027;
    box-shadow: 0 0 0 0.2rem rgba(231, 32, 39, 0.25);
}

/* Filter Buttons */
.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-primary {
    background-color: #E72027;
    color: white;
}

.btn-filter-primary:hover {
    background-color: #b3191f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 32, 39, 0.3);
}

.btn-filter-secondary {
    background-color: #e9ecef;
    color: #2c3e50;
}

body.dark-mode .btn-filter-secondary {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.btn-filter-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

body.dark-mode .btn-filter-secondary:hover {
    background-color: #3d3d3d;
}

/* Enhanced Table */
.employee-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: white;
}

body.dark-mode .employee-table-wrapper {
    background: #252525;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.employee-table {
    margin: 0;
    font-size: 14px;
}

/* Table Header */
.employee-table thead {
    background: linear-gradient(135deg, #E72027 0%, #b3191f 100%);
    color: white;
}

.employee-table thead th {
    border: none;
    padding: 16px 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    color: white;
}

/* Table Body */
.employee-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

body.dark-mode .employee-table tbody tr {
    border-color: #404040;
}

.employee-table tbody tr:hover {
    background-color: #f8f9fa;
}

body.dark-mode .employee-table tbody tr:hover {
    background-color: #2d2d2d;
}

.employee-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #2c3e50;
}

body.dark-mode .employee-table tbody td {
    color: #e0e0e0;
}

/* Employee Name Column */
.emp-name {
    font-weight: 600;
    color: #1a1a1a;
}

body.dark-mode .emp-name {
    color: #e0e0e0;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

body.dark-mode .status-active {
    background-color: rgba(44, 125, 50, 0.2);
    color: #7fc97f;
}

body.dark-mode .status-inactive {
    background-color: rgba(179, 25, 25, 0.2);
    color: #ff8a8a;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    padding: 0;
}

.action-btn-edit {
    background-color: #d9e7f7;
    color: #0066cc;
}

body.dark-mode .action-btn-edit {
    background-color: rgba(0, 102, 204, 0.2);
    color: #6db3ff;
}

.action-btn-edit:hover {
    background-color: #c9daf8;
    transform: scale(1.1);
}

body.dark-mode .action-btn-edit:hover {
    background-color: rgba(0, 102, 204, 0.3);
}

.action-btn-delete {
    background-color: #f8d7da;
    color: #dc3545;
}

body.dark-mode .action-btn-delete {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff8a8a;
}

.action-btn-delete:hover {
    background-color: #f5c6cb;
    transform: scale(1.1);
}

body.dark-mode .action-btn-delete:hover {
    background-color: rgba(220, 53, 69, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

body.dark-mode .empty-state {
    color: #a0a0a0;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 16px;
    font-weight: 500;
}

/* Loading State */
.table-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.table-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .filter-group {
        grid-template-columns: 1fr;
    }

    .employee-table {
        font-size: 12px;
    }

    .employee-table thead th,
    .employee-table tbody td {
        padding: 10px 8px;
    }

    .action-buttons {
        gap: 6px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 4px;
}

body.dark-mode .search-highlight {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    justify-content: center;
}

.page-link {
    color: #E72027;
    border-color: #dee2e6;
    border-radius: 6px;
    margin: 0 4px;
}

.page-link:hover {
    color: white;
    background-color: #E72027;
    border-color: #E72027;
}

.page-item.active .page-link {
    background-color: #E72027;
    border-color: #E72027;
}

body.dark-mode .page-link {
    border-color: #404040;
    color: #E72027;
}

body.dark-mode .page-link:hover {
    background-color: #E72027;
    border-color: #E72027;
}


