/* =============================================================================
   ADMIN SHARED STYLES
   =============================================================================
   Standardized styles for ALL admin portal pages.
   Provides consistent headers, containers, buttons, filters, cards, and states.

   NOTE: Uses CSS variables from modern-theme.css (:root) and animations
   (fadeInSafe, shimmerSlide) already defined there.
   ============================================================================= */

/* =============================================================================
   MOBILE HEADER (sticky top bar — d-md-none)
   ============================================================================= */

.admin-mobile-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 86, 179, 0.08);
    z-index: 1080;
    padding: 0;
}

.admin-mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: 52px;
}

.admin-mobile-header-content h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--theme-text-main, #212529);
    letter-spacing: -0.02em;
}

/* --- Mobile Back Button --- */
.admin-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--bs-primary, #0056b3);
    background: rgba(0, 86, 179, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.admin-back-btn:hover {
    background: var(--bs-primary, #0056b3);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25);
}

.admin-back-btn:active {
    transform: scale(0.95);
}

/* --- Header Action Button (e.g., calendar link, refresh) --- */
.admin-header-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary, #0056b3);
    background: rgba(0, 86, 179, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 86, 179, 0.08);
    border: none;
    cursor: pointer;
}

.admin-header-action-btn:hover {
    background: rgba(0, 86, 179, 0.15);
}

.admin-header-action-btn:active {
    transform: scale(0.95);
}

/* =============================================================================
   MOBILE FILTER PILLS (horizontal scrolling status filters)
   ============================================================================= */

.admin-filter-pills {
    display: flex;
    gap: 8px;
    padding: 8px 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.admin-filter-pills::-webkit-scrollbar {
    display: none;
}

.admin-filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--theme-text-muted, #6c757d);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.admin-filter-pill:active {
    transform: scale(0.97);
}

.admin-filter-pill.active {
    background: var(--bs-primary, #0056b3);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25);
}

.admin-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 0.65rem;
    font-weight: 700;
}

.admin-filter-pill.active .admin-pill-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* =============================================================================
   DESKTOP HEADER
   ============================================================================= */

.admin-desktop-header {
    margin-bottom: 1.5rem;
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-main, #212529);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.admin-page-title i {
    color: var(--bs-primary, #0056b3);
}

.admin-page-subtitle {
    color: var(--theme-text-muted, #6c757d);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}

/* --- Desktop Back Link --- */
.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-text-muted, #6c757d);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.admin-back-link:hover {
    color: var(--bs-primary, #0056b3);
    gap: 8px;
}

/* --- Desktop Back Button (circle) --- */
.admin-back-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-main, #212529);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.admin-back-btn-circle:hover {
    background: rgba(0, 86, 179, 0.08);
    color: var(--bs-primary, #0056b3);
    border-color: rgba(0, 86, 179, 0.2);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.12);
}

.admin-back-btn-circle:active {
    transform: scale(0.95);
}

/* =============================================================================
   DESKTOP NAV PILLS (status tab filter)
   ============================================================================= */

.admin-nav-pills {
    display: flex;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 12px;
    gap: 2px;
}

.admin-nav-pill {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--theme-text-muted, #6c757d);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-nav-pill:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
    color: var(--theme-text-main, #212529);
}

.admin-nav-pill.active {
    background: white;
    color: var(--theme-text-main, #212529);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.admin-nav-pill .badge {
    font-size: 0.7rem;
}

/* =============================================================================
   STATS CARDS (row of summary stat cards)
   ============================================================================= */

.admin-stat-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.admin-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--theme-text-muted, #6c757d);
    margin-bottom: 2px;
}

.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Stats animation stagger */
.admin-stat-card:nth-child(1) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.1s; }
.admin-stat-card:nth-child(2) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.2s; }
.admin-stat-card:nth-child(3) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.3s; }
.admin-stat-card:nth-child(4) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.4s; }

/* =============================================================================
   MOBILE METRICS CARD (compact grid for mobile stats)
   ============================================================================= */

.admin-metrics-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: adminFadeInUp 0.3s ease-out;
}

.admin-metrics-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.015);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--theme-text-muted, #6c757d);
}

.admin-metrics-header i {
    font-size: 0.7rem;
    color: var(--bs-primary, #0056b3);
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.admin-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: white;
    transition: background 0.2s ease;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-metric-item:last-child {
    border-right: none;
}

.admin-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.admin-metric-icon.primary { background: rgba(0, 86, 179, 0.1); color: var(--bs-primary, #0056b3); }
.admin-metric-icon.success { background: rgba(25, 135, 84, 0.1); color: #198754; }
.admin-metric-icon.info { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; }
.admin-metric-icon.warning { background: rgba(255, 193, 7, 0.15); color: #cc9a06; }
.admin-metric-icon.danger { background: rgba(220, 53, 69, 0.1); color: #dc3545; }

.admin-metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-main, #212529);
    line-height: 1.1;
}

.admin-metric-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--theme-text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =============================================================================
   FILTER TOOLBAR (date filter card with view selector & date nav)
   ============================================================================= */

.admin-filter-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.admin-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-filter-btn:hover {
    border-color: var(--bs-primary, #0056b3);
    background: rgba(0, 86, 179, 0.03);
    color: var(--bs-primary, #0056b3);
}

.admin-filter-btn i:last-child {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.admin-filter-btn[aria-expanded="true"] i:last-child {
    transform: rotate(180deg);
}

/* =============================================================================
   DATE NAVIGATION (prev/next with date display)
   ============================================================================= */

.admin-date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-date-nav-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 12px;
    color: var(--theme-text-main, #212529);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-date-nav-btn:hover {
    background: rgba(0, 86, 179, 0.08);
    color: var(--bs-primary, #0056b3);
}

.admin-date-nav-btn:active {
    transform: scale(0.95);
}

.admin-date-display {
    flex: 1;
    text-align: center;
}

.admin-date-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-text-main, #212529);
}

/* =============================================================================
   VIEW SELECTOR DROPDOWN (week/month/year)
   ============================================================================= */

.admin-view-selector-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-view-selector-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-view-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 86, 179, 0.1);
    color: var(--bs-primary, #0056b3);
    border-radius: 10px;
    font-size: 1.1rem;
}

.admin-view-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-main, #212529);
}

/* =============================================================================
   MOBILE REQUEST CARDS (list of approval items on mobile)
   ============================================================================= */

.admin-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-request-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    position: relative;
}

.admin-request-card:active {
    transform: scale(0.99);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.admin-card-status-bar {
    height: 4px;
    width: 100%;
}

.admin-card-status-bar.pending { background: linear-gradient(90deg, #ffc107, #ffdb4d); }
.admin-card-status-bar.approved { background: linear-gradient(90deg, #198754, #28a745); }
.admin-card-status-bar.rejected { background: linear-gradient(90deg, #dc3545, #e4606d); }

.admin-card-content {
    padding: 14px 16px;
}

.admin-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* --- Employee Info --- */
.admin-employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-employee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 86, 179, 0.1);
}

.admin-employee-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.1);
    color: var(--bs-primary, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.admin-employee-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--theme-text-main, #212529);
}

.admin-submission-date {
    font-size: 0.75rem;
    color: var(--theme-text-muted, #6c757d);
}

/* --- Status Badge --- */
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-status-badge.pending { background: rgba(255, 193, 7, 0.15); color: #997404; }
.admin-status-badge.approved { background: rgba(25, 135, 84, 0.12); color: #146c43; }
.admin-status-badge.rejected { background: rgba(220, 53, 69, 0.12); color: #b02a37; }

/* --- Info Row --- */
.admin-info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.admin-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-info-label {
    font-size: 0.65rem;
    color: var(--theme-text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-info-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-main, #212529);
}

/* --- Type Badge --- */
.admin-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.admin-type-badge.sick { background: rgba(13, 202, 240, 0.12); color: #0aa2c0; }
.admin-type-badge.vacation { background: rgba(25, 135, 84, 0.12); color: #146c43; }
.admin-type-badge.personal { background: rgba(111, 66, 193, 0.12); color: #59359a; }
.admin-type-badge.other { background: rgba(108, 117, 125, 0.12); color: #5c636a; }

/* =============================================================================
   ACTION BUTTONS (approve/reject/view)
   ============================================================================= */

.admin-action-buttons {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.admin-action-btn:active {
    transform: scale(0.97);
}

.admin-approve-btn {
    flex: 1;
    background: rgba(25, 135, 84, 0.1);
    color: #146c43;
}

.admin-approve-btn:hover {
    background: rgba(25, 135, 84, 0.18);
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.15);
}

.admin-reject-btn {
    flex: 1;
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
}

.admin-reject-btn:hover {
    background: rgba(220, 53, 69, 0.18);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
}

.admin-view-btn {
    background: rgba(0, 86, 179, 0.08);
    color: var(--bs-primary, #0056b3);
    padding: 10px 16px;
    text-decoration: none;
}

.admin-view-btn:hover {
    background: rgba(0, 86, 179, 0.15);
    color: var(--bs-primary, #0056b3);
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.12);
}

/* =============================================================================
   LOADING STATES
   ============================================================================= */

.admin-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.admin-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

.admin-loading p {
    color: var(--theme-text-muted, #6c757d);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */

.admin-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.admin-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.admin-empty-icon i {
    font-size: 1.75rem;
    color: var(--theme-text-muted, #6c757d);
}

.admin-empty-state h5 {
    font-weight: 600;
    color: var(--theme-text-muted, #6c757d);
    margin-bottom: 0.5rem;
}

.admin-empty-state p {
    color: var(--theme-text-muted, #6c757d);
    font-size: 0.875rem;
    max-width: 400px;
    margin: 0 auto;
}

/* =============================================================================
   TABLE ENHANCEMENTS
   ============================================================================= */

.admin-table {
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--theme-text-muted, #6c757d);
    border-bottom-width: 1px;
    padding: 12px 16px;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-table tbody tr:hover {
    background-color: rgba(0, 86, 179, 0.04);
}

/* Table row animation stagger */
.admin-table tbody tr:nth-child(1) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.05s; }
.admin-table tbody tr:nth-child(2) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.1s; }
.admin-table tbody tr:nth-child(3) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.15s; }
.admin-table tbody tr:nth-child(4) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.2s; }
.admin-table tbody tr:nth-child(5) { animation: adminFadeInUp 0.3s ease-out backwards; animation-delay: 0.25s; }

/* =============================================================================
   ICON BUTTON (small square action button)
   ============================================================================= */

.admin-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.admin-btn-icon:hover {
    transform: scale(1.1);
}

.admin-btn-icon:active {
    transform: scale(0.95);
}

/* =============================================================================
   BADGE VARIANTS (subtle colors)
   ============================================================================= */

.admin-badge-subtle-info { background-color: rgba(13, 202, 240, 0.15); color: #0aa2c0; }
.admin-badge-subtle-success { background-color: rgba(25, 135, 84, 0.15); color: #146c43; }
.admin-badge-subtle-purple { background-color: rgba(111, 66, 193, 0.15); color: #59359a; }
.admin-badge-subtle-secondary { background-color: rgba(108, 117, 125, 0.15); color: #5c636a; }
.admin-badge-subtle-warning { background-color: rgba(255, 193, 7, 0.15); color: #997404; }
.admin-badge-subtle-danger { background-color: rgba(220, 53, 69, 0.15); color: #b02a37; }
.admin-badge-subtle-primary { background-color: rgba(0, 86, 179, 0.12); color: var(--bs-primary, #0056b3); }

/* =============================================================================
   SPINNER
   ============================================================================= */

.admin-spin {
    animation: adminSpin 1s linear infinite;
}

@keyframes adminSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes adminFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes adminScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes adminDropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile cards animation stagger */
.admin-cards-container .admin-request-card { animation: adminFadeInUp 0.3s ease-out backwards; }
.admin-cards-container .admin-request-card:nth-child(1) { animation-delay: 0.05s; }
.admin-cards-container .admin-request-card:nth-child(2) { animation-delay: 0.1s; }
.admin-cards-container .admin-request-card:nth-child(3) { animation-delay: 0.15s; }
.admin-cards-container .admin-request-card:nth-child(4) { animation-delay: 0.2s; }
.admin-cards-container .admin-request-card:nth-child(5) { animation-delay: 0.25s; }
.admin-cards-container .admin-request-card:nth-child(6) { animation-delay: 0.3s; }
.admin-cards-container .admin-request-card:nth-child(7) { animation-delay: 0.35s; }

/* =============================================================================
   MODAL ENHANCEMENT
   ============================================================================= */

.admin-modal .modal-content {
    animation: adminScaleIn 0.25s ease-out;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.admin-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
}

.admin-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
}

/* =============================================================================
   SETTINGS PAGE STYLES
   ============================================================================= */

.admin-settings-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.admin-settings-card .card-header {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    font-weight: 600;
}

.admin-settings-section {
    margin-bottom: 2rem;
}

.admin-settings-section h6 {
    font-weight: 600;
    color: var(--theme-text-main, #212529);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-settings-section h6 i {
    color: var(--bs-primary, #0056b3);
}

/* =============================================================================
   RESPONSIVE OVERRIDES
   ============================================================================= */

@media (max-width: 767.98px) {
    .admin-page-title {
        font-size: 1.25rem;
    }

    .admin-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-metric-item:nth-child(2) {
        border-right: none;
    }

    .admin-metric-item:nth-child(1),
    .admin-metric-item:nth-child(2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
}

/* =============================================================================
   FILTER DROPDOWNS — Shared across all admin pages
   Based on LeaveApproval.razor reference pattern
   Usage: <div class="filter-dropdown"><button class="filter-btn">...</button></div>
   ============================================================================= */
.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.filter-btn:hover {
    border-color: var(--bs-primary, #0056b3);
    background: rgba(0, 86, 179, 0.03);
    color: var(--bs-primary, #0056b3);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
    border-color: var(--bs-primary, #0056b3);
}

.filter-btn i:first-child {
    font-size: 1rem;
    opacity: 0.7;
}

.filter-btn .filter-label {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-btn .bi-chevron-down {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.filter-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.filter-dropdown .dropdown-menu {
    min-width: 200px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 4px;
    animation: filterDropIn 0.15s ease;
}

.filter-dropdown .dropdown-menu.dropdown-scrollable {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.filter-dropdown .dropdown-menu.dropdown-scrollable::-webkit-scrollbar {
    width: 5px;
}

.filter-dropdown .dropdown-menu.dropdown-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.filter-dropdown .dropdown-menu.dropdown-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.filter-dropdown .dropdown-menu.dropdown-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* No results message */
.filter-dropdown .dropdown-no-results {
    padding: 12px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
    font-style: italic;
}

.filter-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    cursor: pointer;
    gap: 8px;
}

.filter-dropdown .dropdown-item:hover {
    background: rgba(0, 86, 179, 0.06);
    color: var(--bs-primary, #0056b3);
}

.filter-dropdown .dropdown-item.active {
    background: var(--bs-primary, #0056b3);
    color: white;
    font-weight: 500;
}

.filter-dropdown .dropdown-item.active i {
    color: white !important;
}

.filter-dropdown .dropdown-item i {
    font-size: 0.9rem;
}

/* Search input inside dropdown */
.filter-dropdown .dropdown-search {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 4px;
}

.filter-dropdown .dropdown-search .form-control {
    font-size: 0.8rem;
    border-radius: 6px;
}

@keyframes filterDropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark mode overrides */
[data-bs-theme="dark"] .filter-btn {
    background: #1e2028;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e1e3e8;
}

[data-bs-theme="dark"] .filter-btn:hover {
    border-color: #6ea8fe;
    background: rgba(59, 130, 246, 0.08);
    color: #6ea8fe;
}

[data-bs-theme="dark"] .filter-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
    border-color: #6ea8fe;
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-menu {
    background: #1e2028;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-item {
    color: #e1e3e8;
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #6ea8fe;
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-item.active {
    background: var(--bs-primary, #0056b3);
    color: white;
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-menu.dropdown-scrollable {
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-menu.dropdown-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-menu.dropdown-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-no-results {
    color: #6b7280;
}

[data-bs-theme="dark"] .filter-dropdown .dropdown-search {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* =============================================================================
   FILTER SEARCH INPUT — Inline search box matching filter-btn style
   Usage: <div class="filter-search"><i class="bi bi-search"></i><input .../></div>
   ============================================================================= */
.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    height: 42px;
    transition: all 0.2s ease;
}

.filter-search:focus-within {
    border-color: var(--bs-primary, #0056b3);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

.filter-search i {
    font-size: 0.85rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.filter-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: #495057;
    width: 100%;
    padding: 0;
}

.filter-search input::placeholder {
    color: #9ca3af;
}

/* Dark mode */
[data-bs-theme="dark"] .filter-search {
    background: #1e2028;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .filter-search:focus-within {
    border-color: #6ea8fe;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

[data-bs-theme="dark"] .filter-search input {
    color: #e1e3e8;
}

[data-bs-theme="dark"] .filter-search input::placeholder {
    color: #6b7280;
}

/* =============================================================================
   FILTER DATE INPUT — Date picker matching filter-btn style
   Usage: <div class="filter-date"><i .../><span>From</span><input type="date" /></div>
   ============================================================================= */
.filter-date {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    height: 42px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-date:focus-within {
    border-color: var(--bs-primary, #0056b3);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

.filter-date i {
    font-size: 0.85rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.filter-date .filter-date-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-date input[type="date"] {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.8rem;
    color: #495057;
    padding: 0;
    width: 120px;
}

/* Dark mode */
[data-bs-theme="dark"] .filter-date {
    background: #1e2028;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .filter-date:focus-within {
    border-color: #6ea8fe;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

[data-bs-theme="dark"] .filter-date input[type="date"] {
    color: #e1e3e8;
    color-scheme: dark;
}

/* =============================================================================
   FILTER CLEAR BUTTON — Danger-styled clear button
   Usage: <button class="filter-clear-btn"><i .../><span>Clear</span></button>
   ============================================================================= */
.filter-clear-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--bs-danger, #dc3545);
    border-radius: 8px;
    background: white;
    color: var(--bs-danger, #dc3545);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-clear-btn:hover {
    background: var(--bs-danger, #dc3545);
    color: white;
}

.filter-clear-btn:active {
    transform: scale(0.97);
}

/* Dark mode */
[data-bs-theme="dark"] .filter-clear-btn {
    background: transparent;
    border-color: #f87171;
    color: #f87171;
}

[data-bs-theme="dark"] .filter-clear-btn:hover {
    background: #f87171;
    color: #1e2028;
}

/* =============================================================================
   FILTER QUICK DATE PRESETS — Pill buttons for date shortcuts
   Usage: <div class="filter-quick-dates"><button class="filter-quick-btn active">Today</button></div>
   ============================================================================= */
.filter-quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-quick-label {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 2px;
}

.filter-quick-btn {
    padding: 3px 10px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: white;
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-quick-btn:hover {
    border-color: var(--bs-primary, #0056b3);
    color: var(--bs-primary, #0056b3);
    background: rgba(0, 86, 179, 0.04);
}

.filter-quick-btn.active {
    background: var(--bs-primary, #0056b3);
    border-color: var(--bs-primary, #0056b3);
    color: white;
}

/* Dark mode */
[data-bs-theme="dark"] .filter-quick-dates {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .filter-quick-btn {
    background: #1e2028;
    border-color: rgba(255, 255, 255, 0.12);
    color: #9ca3af;
}

[data-bs-theme="dark"] .filter-quick-btn:hover {
    border-color: #6ea8fe;
    color: #6ea8fe;
    background: rgba(59, 130, 246, 0.08);
}

[data-bs-theme="dark"] .filter-quick-btn.active {
    background: var(--bs-primary, #0056b3);
    border-color: var(--bs-primary, #0056b3);
    color: white;
}
