/* HRM Jhelum - Professional Human Resource Management System */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    
    /* Secondary Colors */
    --secondary-color: #64748b;
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    
    /* Accent Colors */
    --accent-color: #10b981;
    --accent-light: #34d399;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Spacing */
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navigation Styles */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: var(--shadow-lg);
    border: none;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1000;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.navbar-brand:hover {
    color: var(--white) !important;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar-brand i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    background: var(--white);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition-fast);
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    transform: translateX(4px);
}

.dropdown-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dropdown-header {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-header i {
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

/* User Profile Dropdown */
.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

#profileDropdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

#profileDropdown:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    transition: var(--transition);
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .nav-link {
        color: var(--gray-700) !important;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--primary-color);
        color: var(--white) !important;
    }
    
    #profileDropdown {
        background: var(--gray-100);
        color: var(--gray-700) !important;
    }
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 24px;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 24px;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px;
}

/* Dashboard Stats */
.stats-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: height 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stats-card:hover::before {
    height: 6px;
}

.stats-card.employees::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stats-card.employees .stats-icon {
    color: var(--success-color);
}

.stats-card.departments {
    border-left-color: var(--warning-color);
}

.stats-card.departments .stats-icon {
    color: var(--warning-color);
}

.stats-card.leaves::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stats-card.leaves .stats-icon {
    color: var(--danger-color);
}

.stats-card.documents::before {
    background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.stats-card.documents .stats-icon {
    color: var(--info-color);
}

.stats-card.users::before {
    background: linear-gradient(90deg, #007bff, #6610f2);
}

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

.stats-card h6 {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #2c3e50;
}

.stats-card a {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.stats-card:hover a {
    color: #495057;
}

.stats-icon {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.stats-icon i {
    font-size: 1.8rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.stats-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
    background: var(--white);
}

.form-control:hover, .form-select:hover {
    border-color: var(--gray-300);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.required-field::after {
    content: " *";
    color: var(--danger-color);
    font-weight: 600;
}

.input-group-text {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-600);
    font-weight: 500;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
    border-color: var(--success-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, var(--success-color) 100%);
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
    border-color: var(--danger-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, var(--danger-color) 100%);
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #c2410c 100%);
    border-color: var(--warning-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #c2410c 0%, var(--warning-color) 100%);
    border-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0e7490 100%);
    border-color: var(--info-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0e7490 0%, var(--info-color) 100%);
    border-color: #0e7490;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
    padding: 12px 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status Badges */
.badge {
    padding: 6px 10px;
    font-weight: 500;
    border-radius: 4px;
}

/* Profile Page */
.profile-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-info h4 {
    margin-bottom: 5px;
}

.profile-info p {
    margin-bottom: 10px;
    color: #6c757d;
}

/* Document Cards */
.document-card {
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Leave Application */
.leave-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

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

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

/* Calendar */
.calendar-day {
    height: 100px;
    border: 1px solid #dee2e6;
    padding: 5px;
}

.calendar-day-header {
    font-weight: bold;
    text-align: center;
    padding: 5px;
    background-color: #f8f9fa;
}

.calendar-event {
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Login Page */
.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-logo i {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.login-logo h2 {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 2rem;
}

.login-logo p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 0;
}

.login-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

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

.login-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.login-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.login-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.login-card-header img {
    max-width: 100px;
    height: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.login-card-header h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.login-card-header p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header {
        text-align: center;
    }
    
    .profile-img {
        margin-bottom: 20px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .container-fluid {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background-color: #fff;
    }
}

/* Dashboard Specific Styles */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.dashboard-header .container-fluid {
    position: relative;
    z-index: 1;
}

.dashboard-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-icon i {
    font-size: 2rem;
    color: white;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.dashboard-date, .dashboard-time {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.dashboard-date i, .dashboard-time i {
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-header p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.dashboard-header i {
    margin-right: 0.75rem;
    font-size: 2rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Enhanced Stats Cards */
.stats-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stats-card:hover::before {
    height: 6px;
}

.stats-card.employees::before {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.stats-card.leaves::before {
    background: linear-gradient(90deg, var(--danger-color), #f87171);
}

.stats-card.documents::before {
    background: linear-gradient(90deg, var(--info-color), #38bdf8);
}

.stats-card .card-body {
    padding: 1.75rem;
    position: relative;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stats-card:hover .stats-icon {
    opacity: 1;
    transform: scale(1.1);
}

.stats-card h6 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stats-card h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: 1;
}

.stats-card .text-decoration-none {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.stats-card .text-decoration-none:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Analytics Section */
.analytics-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.analytics-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Chart Cards */
.chart-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.chart-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.chart-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.chart-card .card-header h5 {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
    margin: 0;
}

.chart-card .card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0;
}

.chart-card .card-body {
    padding: 1.5rem;
    background: white;
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0;
}

/* Recent Activities Cards */
.recent-activities .card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    margin-bottom: 2rem;
}

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

.recent-activities .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.recent-activities .card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0;
    color: var(--white);
}

.recent-activities .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    transition: var(--transition-fast);
}

.recent-activities .list-group-item:hover {
    background: var(--gray-50);
    transform: translateX(4px);
}

.recent-activities .list-group-item:last-child {
    border-bottom: none;
}

.recent-activities .list-group-item h6 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.recent-activities .list-group-item small {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

.recent-activities .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-width: 2px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.recent-activities .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.recent-activities .card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    text-align: center;
}

.recent-activities .card-footer .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

/* Badge Enhancements */
.badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24) !important;
    color: var(--white) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light)) !important;
    color: var(--white) !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171) !important;
    color: var(--white) !important;
}

/* Dashboard Grid Improvements */
.dashboard-grid {
    gap: 1.5rem;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section:last-child {
    margin-bottom: 2rem;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .chart-container {
        height: 280px;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 1.5rem 1rem;
    }
    
    .dashboard-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .dashboard-header p {
        font-size: var(--font-size-base);
    }
    
    .chart-container {
        height: 250px;
        padding: 0.75rem;
    }
    
    .stats-card .card-body {
        padding: 1.25rem;
    }
    
    .stats-card h3 {
        font-size: 1.75rem;
    }
    
    .analytics-title {
        font-size: var(--font-size-xl);
        margin-bottom: 1.5rem;
    }
    
    .recent-activities .list-group-item {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .dashboard-header {
        text-align: center;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .chart-card {
        margin-bottom: 1.5rem;
    }
    
    .recent-activities .card {
        margin-bottom: 1.5rem;
    }
}