/* Admin Panel Styles - Professional Design */

/* ===== BUTTON OVERRIDES ===== */
/* Override Bootstrap outline button styles to show background colors */
.btn-outline-primary {
    background: rgba(30, 64, 175, 0.1) !important;
    border-color: #1e40af !important;
    color: #1e40af !important;
    font-weight: 500 !important;
}

.btn-outline-primary:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: white !important;
}

.btn-outline-info {
    background: rgba(8, 145, 178, 0.1) !important;
    border-color: #0891b2 !important;
    color: #0891b2 !important;
    font-weight: 500 !important;
}

.btn-outline-info:hover {
    background: #0891b2 !important;
    border-color: #0891b2 !important;
    color: white !important;
}

.btn-outline-secondary {
    background: rgba(107, 114, 128, 0.1) !important;
    border-color: #6b7280 !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

.btn-outline-secondary:hover {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    color: white !important;
}

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* ===== ADMIN DASHBOARD LAYOUT ===== */
.admin-dashboard-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: var(--spacing-lg);
    margin-left: 0; /* Ensure no left margin */
}

.admin-dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== HEADER SECTION ===== */
.admin-header {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.admin-header .appie-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.2;
}

.admin-header .text-muted {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ===== STATISTICS CARDS ===== */
.admin-stat-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: var(--spacing-lg);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.admin-stat-card .stat-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.admin-stat-card .stat-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.admin-stat-card .stat-icon i {
    font-size: 28px;
    color: #ffffff;
    font-weight: 600;
}

.admin-stat-card .stat-content {
    flex: 1;
}

.admin-stat-card .stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1;
}

.admin-stat-card .stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FUNCTION CARDS ===== */
.admin-function-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.admin-function-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--success-color), var(--info-color));
}

.admin-function-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--success-color);
}

.admin-function-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.admin-function-card .card-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.admin-function-card .card-header h4 i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.admin-function-card .card-body {
    padding: var(--spacing-lg);
}

.admin-function-card .card-body p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== BUTTONS ===== */
.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.admin-buttons .main-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.admin-buttons .main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.admin-buttons .main-btn:hover::before {
    left: 100%;
}

.admin-buttons .main-btn {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.admin-buttons .main-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.admin-buttons .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.admin-buttons .btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== CHARTS SECTION ===== */
.charts-section {
    margin: var(--spacing-2xl) 0;
}

.chart-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-lg);
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.chart-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.chart-card .card-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chart-card .card-header h4 i {
    color: var(--primary-color);
}

.chart-card .card-body {
    padding: var(--spacing-md);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ACTIVITY SECTION ===== */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--light-color);
    margin: 0 calc(-1 * var(--spacing-sm));
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    border-radius: var(--border-radius);
}

.activity-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.activity-icon i {
    color: var(--bg-white);
    font-size: 18px;
    font-weight: 600;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

.activity-content small {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .admin-dashboard-container {
        padding: var(--spacing-md);
    }
    
    .admin-dashboard-content {
        padding: 0 var(--spacing-md);
    }
    
    .admin-header {
        padding: var(--spacing-lg);
    }
    
    .admin-header .appie-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-container {
        padding: var(--spacing-sm);
    }
    
    .admin-dashboard-content {
        padding: 0 var(--spacing-sm);
    }
    
    .admin-header {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .admin-header .appie-title {
        font-size: 1.75rem;
    }
    
    .admin-stat-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .admin-stat-card .stat-icon {
        width: 56px;
        height: 56px;
        margin-right: var(--spacing-md);
    }
    
    .admin-stat-card .stat-icon i {
        font-size: 24px;
    }
    
    .admin-stat-card .stat-content h3 {
        font-size: 2rem;
    }
    
    .admin-buttons {
        justify-content: center;
    }
    
    .admin-buttons .main-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
.admin-dashboard-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.admin-dashboard-dark .admin-header,
.admin-dashboard-dark .admin-stat-card,
.admin-dashboard-dark .admin-function-card,
.admin-dashboard-dark .chart-card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.admin-dashboard-dark .admin-header .appie-title,
.admin-dashboard-dark .admin-stat-card .stat-content h3,
.admin-dashboard-dark .admin-function-card .card-header h4,
.admin-dashboard-dark .chart-card .card-header h4 {
    color: #f8fafc;
}

.admin-dashboard-dark .admin-header .text-muted,
.admin-dashboard-dark .admin-stat-card .stat-content p,
.admin-dashboard-dark .admin-function-card .card-body p,
.admin-dashboard-dark .activity-content p {
    color: #cbd5e1;
}

.admin-dashboard-dark .activity-content small {
    color: #94a3b8;
}

.admin-dashboard-dark .admin-function-card .card-header,
.admin-dashboard-dark .chart-card .card-header {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-color: #475569;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-stat-card,
.admin-function-card,
.chart-card {
    animation: fadeInUp 0.6s ease-out;
}

.admin-stat-card:nth-child(1) { animation-delay: 0.1s; }
.admin-stat-card:nth-child(2) { animation-delay: 0.2s; }
.admin-stat-card:nth-child(3) { animation-delay: 0.3s; }
.admin-stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--info-color)) 1;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* ===== EXISTING STYLES (KEEPING FOR COMPATIBILITY) ===== */
.admin-login-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.admin-login-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.admin-login-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.admin-login-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.admin-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.admin-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.admin-stat-card .stat-icon i {
    font-size: 24px;
    color: #2563eb;
}

.admin-stat-card .stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.admin-stat-card .stat-content p {
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.admin-function-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-function-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.admin-function-card .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.admin-function-card .card-header h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

.admin-function-card .card-header h4 i {
    margin-right: 10px;
    color: #007bff;
}

.admin-function-card .card-body {
    padding: 25px;
}

.admin-function-card .card-body p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-buttons .main-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-buttons .main-btn i {
    margin-right: 6px;
}

.admin-buttons .btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.admin-buttons .btn-outline:hover {
    background: #007bff;
    color: #fff;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.activity-icon i {
    color: #2563eb !important;
    font-size: 16px;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-weight: 500;
}

.activity-content small {
    color: #6c757d;
    font-size: 13px;
}

.admin-header {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.btn-outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline:hover {
    background: #6c757d;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-login-form {
        padding: 30px 20px;
    }
    
    .admin-stat-card {
        padding: 20px;
    }
    
    .admin-stat-card .stat-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .admin-stat-card .stat-icon i {
        font-size: 20px;
    }
    
    .admin-stat-card .stat-content h3 {
        font-size: 24px;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .admin-buttons .main-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Always show admin login button */
.admin-login-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Employee Management Styles */
.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.employee-details .table-sm td {
    padding: 0.5rem;
    vertical-align: top;
}

.employee-details .card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
}

.employee-details .card-body {
    padding: 1rem;
}

.employee-jobs .table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.employee-jobs .table td {
    vertical-align: middle;
}

.employee-jobs .progress {
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.employee-jobs .progress-bar {
    background-color: #007bff;
    border-radius: 0.25rem;
}

.employee-jobs .card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.employee-jobs .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.employee-jobs .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.employee-jobs .card-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

/* Modal styles */
.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1140px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Table responsive styles */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

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

/* Search and filter styles */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}



/* Activity list styles */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
}

.activity-content small {
    color: #6c757d;
}

/* Employee Management Styles */
.employee-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.employee-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.employee-table td {
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.employee-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 2px;
}

.employee-email {
    font-size: 0.875rem;
    color: #6c757d;
}

.employee-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

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

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

/* Employee Details Container */
.employee-details-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Employee Header */
.employee-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.employee-avatar-large {
    flex-shrink: 0;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.avatar-placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
}

.employee-header-info {
    flex: 1;
}

.employee-name-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.employee-role-large {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.employee-status-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.3);
}

.status-badge.inactive {
    background: rgba(220, 53, 69, 0.3);
}

.status-badge.verified {
    background: rgba(40, 167, 69, 0.3);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.3);
}

/* Content Tabs */
.content-tabs {
    background: white;
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    padding: 0 2rem;
    background: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    background: rgba(0,0,0,0.05);
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: white;
    border-bottom: 3px solid #667eea;
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

.tab-content {
    padding: 2rem;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.info-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.info-card .card-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card .card-header i {
    color: #667eea;
}

.info-card .card-body {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.info-value {
    color: #6c757d;
    text-align: right;
    flex: 1;
}

/* Verification Items */
.verification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.verification-item:last-child {
    border-bottom: none;
}

.verification-item.verified i {
    color: #28a745;
}

.verification-item.pending i {
    color: #dc3545;
}

.verification-item span {
    font-weight: 500;
    color: #495057;
}

/* Documents Section */
.documents-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.documents-header {
    text-align: center;
    margin-bottom: 2rem;
}

.documents-header h4 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.documents-header p {
    color: #6c757d;
    margin: 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.document-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.document-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.document-icon i {
    font-size: 2.5rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.document-info h6 {
    text-align: center;
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.document-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}

.document-status-badge.verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.document-status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.document-status-badge.missing {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.document-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-actions {
    display: flex;
    gap: 0.25rem;
}

.status-actions .btn {
    flex: 1;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Jobs Section */
.jobs-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jobs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.jobs-header h4 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.jobs-header p {
    color: #6c757d;
    margin: 0;
}

.jobs-content {
    text-align: center;
}

/* Document Viewer Modal */
.modal-xl {
    max-width: 90%;
}

.document-viewer {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.document-viewer img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

.document-viewer embed {
    width: 100%;
    height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.pdf-container {
    width: 100%;
    height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview {
    padding: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .employee-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .employee-name-large {
        font-size: 2rem;
    }
    
    .employee-status-badges {
        justify-content: center;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        padding: 0 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-value {
        text-align: left;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border: none;
}

/* Table Enhancements */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Search and Filter Styles */
.search-filter-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Pagination Styles */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    color: #667eea;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #667eea;
    border-color: #667eea;
}

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

/* === LIGHT MODE FOR ADMIN LOGIN === */
.admin-login-logo img {
    max-width: 170px !important;
    height: auto !important;
    margin-bottom: 18px !important;
    filter: drop-shadow(0 2px 8px rgba(91,154,255,0.10));
}

.admin-login-form {
    background: #fff;
    border: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    color: #232526;
    padding: 48px 36px 36px 36px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.7s;
    max-width: 480px;
    margin: 0 auto;
}

.admin-login-form .form-label {
    color: #232526;
}

.admin-login-form .form-control {
    background: #f7f9fa;
    border: 1px solid #e3e6ed;
    color: #232526;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
    transition: border 0.2s, box-shadow 0.2s;
}

.admin-login-form .form-control:focus {
    border-color: #5b9aff;
    box-shadow: 0 0 0 2px rgba(91,154,255,0.10);
    background: #fff;
}

.admin-login-form .main-btn {
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    padding: 14px 0 !important;
    letter-spacing: 0.5px !important;
    transition: background 0.3s, transform 0.2s !important;
    outline: none;
    box-shadow: none !important;
}

.admin-login-form .main-btn:hover, .admin-login-form .main-btn:focus {
    background: #1746a2 !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.02);
}

.admin-login-form .alert-danger {
    font-size: 15px;
    border-radius: 8px;
    margin-top: 18px;
}

/* Remove dark mode overrides if present */
.admin-login-dark, .admin-login-dark .admin-login-form, .admin-login-dark .main-btn {
    background: unset !important;
    color: unset !important;
    box-shadow: unset !important;
    border: unset !important;
}

/* === ADMIN DASHBOARD DARK MODE (RESTORED BACKGROUND) === */
.admin-dashboard-dark {
    background: linear-gradient(135deg, #181f2a 0%, #232b3e 100%) !important;
    color: #e3e8ee;
}

.admin-dashboard-dark .admin-header,
.admin-dashboard-dark .admin-function-card,
.admin-dashboard-dark .admin-stat-card {
    padding-top: 0;
    padding-bottom: 0;
}
.admin-dashboard-dark .admin-stat-card .stat-icon i {
    color: #ffc107 !important;
}
.admin-dashboard-dark .admin-stat-card:nth-child(2) .stat-icon i {
    color: #20B2AA !important;
}
.admin-dashboard-dark .admin-stat-card:nth-child(3) .stat-icon i {
    color: #3B82F6 !important;
}
.admin-dashboard-dark .admin-stat-card:nth-child(4) .stat-icon i {
    color: #10B981 !important;
}
.admin-dashboard-dark .main-btn {
    background: #0075ff !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79,70,229,0.10);
}
.admin-dashboard-dark .main-btn.btn-outline {
    background: transparent !important;
    color: #0075ff !important;
    border: 1.5px solid #0075ff !important;
}
.admin-dashboard-dark .main-btn:hover, .admin-dashboard-dark .main-btn:focus {
    background: #0075ff !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(67,56,202,0.18);
}
.admin-dashboard-dark .activity-list .activity-item.success {
    border-left: 4px solid #10B981;
}
.admin-dashboard-dark .activity-list .activity-item.warning {
    border-left: 4px solid #F59E0B;
}
.admin-dashboard-dark .activity-list .activity-item.danger {
    border-left: 4px solid #EF4444;
}
.admin-dashboard-dark .admin-header, .admin-dashboard-dark .admin-function-card, .admin-dashboard-dark .admin-stat-card {
    background: #232936 !important;
    color: #F3F4F6 !important;
    box-shadow: 0 4px 24px 0 rgba(24, 28, 35, 0.18);
    border-radius: 16px;
    border: 1px solid #374151;
}
.admin-dashboard-dark .admin-header .appie-title {
    color: #fff !important;
    letter-spacing: 0.5px;
}
.admin-dashboard-dark .admin-header .text-muted {
    color: #9CA3AF !important;
}
.admin-dashboard-dark .card-header {
    border-bottom: 1px solid #D1D5DB;
}

/* === ADMIN DASHBOARD LIGHT MODE (default) === */
.admin-dashboard-light {
    background: #f8fafc !important;
    color: #232526;
}
.admin-dashboard-light .admin-header,
.admin-dashboard-light .admin-function-card,
.admin-dashboard-light .admin-stat-card {
    padding: 30px;
    background: #fff !important;
    color: #232526 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}
.admin-dashboard-light .admin-function-card .card-header,
.admin-dashboard-light .admin-function-card .card-body {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
}
.admin-dashboard-light .admin-header .appie-title,
.admin-dashboard-light .admin-header .text-muted {
    color: #232526 !important;
}
.admin-dashboard-light .admin-stat-card .stat-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.admin-dashboard-light .admin-stat-card .stat-icon i,
.admin-dashboard-light .admin-function-card .card-header i {
    color: #ffffff !important;
}
.admin-dashboard-light .main-btn {
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
}
.admin-dashboard-light .main-btn.btn-outline {
    background: transparent !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
}
.admin-dashboard-light .activity-list .activity-item {
    background: #fff !important;
    color: #232526 !important;
}

/* === ADMIN DASHBOARD DARK MODE CARD SPACING === */
.admin-dashboard-dark .admin-header:first-child,
.admin-dashboard-dark .admin-function-card:first-child,
.admin-dashboard-dark .admin-stat-card:first-child {
    margin-top: 32px;
}
.admin-dashboard-dark .admin-header:last-child,
.admin-dashboard-dark .admin-function-card:last-child,
.admin-dashboard-dark .admin-stat-card:last-child {
    margin-bottom: 32px;
}

/* === ADMIN DASHBOARD DARK MODE ICONS WHITE & CARD PADDING === */
.admin-dashboard-dark .admin-header {
    padding: 0 !important;
}

/* Add 24px padding to all admin dashboard cards except those with .card-header */
.admin-header:not(.card-header),
.admin-stat-card:not(.card-header),
.admin-function-card:not(:has(.card-header)),
.activity-list:not(.card-header) {
    padding: 24px !important;
}

/* Remove dark mode override for activity icon color */
.admin-dashboard-dark .activity-list .activity-icon i,
.admin-dashboard-dark .admin-stat-card .stat-icon i,
.admin-dashboard-dark .admin-function-card .card-header i {
    color: unset !important;
}

/* Set activity icon color to blue for all modes */
.activity-icon i {
    color: #2563eb !important;
}

.admin-dashboard-dark .admin-stat-card .stat-content h3 {
    color: #ffc107;
}

/* Admin Side Menu Styles */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.admin-sidebar.collapsed {
    transform: translateX(-280px);
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-sidebar-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.admin-sidebar-header p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.admin-sidebar-nav {
    padding: 1rem 0;
}

.admin-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-nav li {
    margin: 0;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.admin-sidebar-nav a.active {
    background: #e3f2fd;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.admin-sidebar-nav i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.admin-sidebar-nav .menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.admin-sidebar-nav .menu-label:first-child {
    margin-top: 0;
    border-top: none;
}

.admin-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.admin-sidebar-toggle:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.admin-sidebar-toggle i {
    font-size: 1.25rem;
}

.admin-main-content {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.admin-main-content.sidebar-collapsed {
    margin-left: 0;
}

/* Dark Mode Support */
.admin-dashboard-dark .admin-sidebar {
    background: #232936;
    border-right-color: #374151;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.admin-dashboard-dark .admin-sidebar-header {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border-bottom-color: #374151;
}

.admin-dashboard-dark .admin-sidebar-nav a {
    color: #e3e8ee;
}

.admin-dashboard-dark .admin-sidebar-nav a:hover {
    background: #374151;
    color: #ffc107;
}

.admin-dashboard-dark .admin-sidebar-nav a.active {
    background: #4B5563;
    color: #ffc107;
}

.admin-dashboard-dark .admin-sidebar-nav .menu-label {
    color: #9CA3AF;
    border-top-color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-280px);
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main-content {
        margin-left: 0;
    }
    
    .admin-sidebar-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .admin-sidebar-toggle {
        display: none;
    }
}

/* Sidebar Overlay for Mobile */
.admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.admin-sidebar-overlay.active {
    display: block;
}

/* Menu Item Badge */
.menu-badge {
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.admin-dashboard-dark .menu-badge {
    background: #dc2626;
}

/* Submenu Styles */
.admin-sidebar-nav .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.admin-sidebar-nav .submenu.open {
    max-height: 200px;
}

.admin-sidebar-nav .submenu a {
    padding-left: 3rem;
    font-size: 0.875rem;
}

.admin-sidebar-nav .menu-item-with-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.admin-sidebar-nav .menu-item-with-submenu.open > a::after {
    transform: rotate(180deg);
}

/* Invoice Management Styles */
.invoice-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.invoice-badge.generated {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.invoice-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.invoice-badge.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.invoice-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.invoice-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Status Badge Enhancements */
.status-badge.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.refunded {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Table Enhancements */
.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Alert Enhancements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Job Link Styles */
.job-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.job-link:hover {
    color: #5a67d8;
    text-decoration: none;
    transform: translateX(2px);
}

.job-link i {
    font-size: 0.875rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #495057;
}

.timeline-content p {
    margin: 0;
    font-size: 0.875rem;
}

/* Modal Enhancements */
.modal-xl {
    max-width: 90%;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Job Details Modal Specific Styles */
#jobDetailsModal .modal-body {
    padding: 2rem;
}

#jobDetailsModal .form-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

#jobDetailsModal p {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

#jobDetailsModal .alert-light {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.25rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    #jobDetailsModal .modal-body {
        padding: 1rem;
    }
}

/* Job Management Styles */
.priority-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.priority-badge.high {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Contractor Assignment Styles */
.contractors-list {
    max-height: 400px;
    overflow-y: auto;
}

.contractor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.contractor-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.contractor-info {
    flex: 1;
}

.contractor-info h6 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-weight: 600;
}

.contractor-details p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.contractor-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.contractor-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Status Badge Enhancements for Jobs */
.status-badge.scheduled {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-badge.in-progress {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Job Management Responsive */
@media (max-width: 768px) {
    .contractor-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .contractor-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .contractor-actions .btn {
        flex: 1;
    }
}

/* Dot Pulse Loading Animation */
.dot--pulse {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.dot--pulse::before,
.dot--pulse::after,
.dot--pulse span {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
    animation: dot-pulse 1.4s ease-in-out infinite both;
    margin: 0 4px;
}

.dot--pulse::before {
    animation-delay: -0.32s;
}

.dot--pulse::after {
    animation-delay: -0.16s;
}

.dot--pulse span {
    animation-delay: 0s;
}

@keyframes dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dot Pulse Variants */
.dot--pulse.text-primary::before,
.dot--pulse.text-primary::after,
.dot--pulse.text-primary span {
    background-color: #007bff;
}

.dot--pulse.text-success::before,
.dot--pulse.text-success::after,
.dot--pulse.text-success span {
    background-color: #28a745;
}

.dot--pulse.text-warning::before,
.dot--pulse.text-warning::after,
.dot--pulse.text-warning span {
    background-color: #ffc107;
}

.dot--pulse.text-danger::before,
.dot--pulse.text-danger::after,
.dot--pulse.text-danger span {
    background-color: #dc3545;
}

/* Loading Container Styles */
.loading-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
} 