/* Employee List Page Styles */
.employee-list-container {
    padding: 1rem;
    height: calc(100vh - 64px);
    overflow-y: auto;
    box-sizing: border-box;
}

/* Header */
.employee-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.header-icon {
    color: #3b82f6 !important;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.employee-list-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.employee-list-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Search Bar */
.employee-search-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.employee-search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.employee-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Container */
.employee-table-container {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Override MudBlazor DataGrid styles */
.employee-list-container .mud-table-container {
    border: none;
    overflow-x: auto;
}

.employee-list-container .mud-table {
    background: white;
    min-width: 100%;
}

.employee-list-container .mud-table-head {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.employee-list-container .mud-table-head .mud-table-cell {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border: none;
}

.employee-list-container .mud-table-body .mud-table-row {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.employee-list-container .mud-table-body .mud-table-row:hover {
    background: #f9fafb;
}

.employee-list-container .mud-table-body .mud-table-cell {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: #374151;
    border: none;
}

/* Status Badges */
.employee-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.employee-status-active {
    background: #d1fae5;
    color: #065f46;
}

.employee-status-inactive {
    background: #f3f4f6;
    color: #374151;
}

/* View Button */
.employee-view-button {
    padding: 0.5rem;
    color: #3b82f6;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.employee-view-button:hover {
    background: #dbeafe;
}

.employee-view-button svg {
    width: 1rem;
    height: 1rem;
}

/* Pagination */
.employee-list-container .mud-table-pagination {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.employee-list-container .mud-table-pagination .mud-table-pagination-toolbar {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Loading and Error States */
.employee-loading,
.employee-error {
    text-align: center;
    padding: 3rem;
    font-size: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.employee-error {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .employee-list-container {
        padding: 0.75rem;
    }

    .employee-list-container .mud-table-cell {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .employee-list-container {
        padding: 0.5rem;
    }

    .employee-list-container .mud-table-cell {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Sticky Right Columns - Status and View */
.employee-list-container .sticky-column-status,
.employee-list-container .mud-table-head .mud-table-cell:nth-last-child(2) {
    position: sticky !important;
    right: 80px !important;
    background: white !important;
    z-index: 10 !important;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

.employee-list-container .sticky-column-view,
.employee-list-container .mud-table-head .mud-table-cell:last-child {
    position: sticky !important;
    right: 0 !important;
    background: white !important;
    z-index: 10 !important;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
}

.employee-list-container .mud-table-head .sticky-column-status,
.employee-list-container .mud-table-head .mud-table-cell:nth-last-child(2) {
    background: #f9fafb !important;
    z-index: 11 !important;
}

.employee-list-container .mud-table-head .sticky-column-view,
.employee-list-container .mud-table-head .mud-table-cell:last-child {
    background: #f9fafb !important;
    z-index: 11 !important;
}

.employee-list-container .mud-table-body .mud-table-row:hover .sticky-column-status {
    background: #f9fafb !important;
}

.employee-list-container .mud-table-body .mud-table-row:hover .sticky-column-view {
    background: #f9fafb !important;
}
