/* Mobile Optimization - Prevent Zoom & Improve Fit */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent zoom on input focus (iOS fix) */
input, select, textarea, button {
    font-size: 16px !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Mobile friendly touch targets */
@media (max-width: 768px) {
    .btn, button, a.btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px !important;
    }
    
    .form-control, .form-select {
        min-height: 44px;
        padding: 12px;
        font-size: 16px !important;
    }
    
    .table {
        font-size: 14px;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
}

/* PWA Standalone Mode */
@media all and (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .card {
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.login-page .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 30px;
    border: none;
}

.login-page .card-body {
    padding: 20px;
}

@media (min-width: 576px) {
    .login-page .card-body {
        padding: 30px;
    }
}

@media (min-width: 768px) {
    .login-page .card-body {
        padding: 40px;
    }
}

@media (max-width: 575px) {
    .login-page .card-header {
        padding: 20px;
    }
    .login-page .card-header h2 {
        font-size: 1.5rem;
    }
    .login-page .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
    .login-page .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Pehexa Fintech EMS - Professional Styles */

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --card-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--dark-color);
}


/* Sidebar */
/* Hamburger Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 280px;
    z-index: 1100;
    background: var(--primary-color);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--card-shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    background: var(--primary-dark);
}

.sidebar-toggle i {
    font-size: 22px;
}

.sidebar {
    min-height: 100vh;
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    width: 260px;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

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

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

body.sidebar-collapsed .sidebar-toggle {
    left: 15px;
}

.sidebar .brand {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: var(--sidebar-bg);
    z-index: 10;
}

.sidebar .brand h4 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.sidebar .brand small {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar .nav {
    padding: 15px 0 20px;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 14px 20px;
    margin: 4px 10px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    color: white;
    background: var(--sidebar-hover);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.sidebar .nav-link i {
    width: 22px;
    margin-right: 12px;
    font-size: 16px;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    padding: 25px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-area {
    padding-left: 70px;
    animation: fadeInUp 0.5s ease;
}

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

/* Top Navbar */
.top-navbar {
    background: white;
    padding: 18px 25px 18px 75px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.stat-card.primary .icon { background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%); }
.stat-card.success .icon { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.stat-card.warning .icon { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.stat-card.danger .icon { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.stat-card.info .icon { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }

.stat-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 12px 0 8px;
    color: #1e293b;
}

.stat-card p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.stat-card .stat-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.stat-card .stat-info h3 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.stat-card .stat-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Data Table */
.data-table {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.data-table table {
    width: 100%;
}

.data-table thead {
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
}

.data-table th {
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--dark-color);
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.badge-light {
    background: #f1f5f9;
    color: #475569;
}

.badge-dark {
    background: #1e293b;
    color: white;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Input Groups */
.input-group-text {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--secondary-color);
    font-weight: 500;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

/* Card */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark-color);
}

.card-body {
    padding: 24px;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.modal-header {
    border-bottom: 2px solid #e2e8f0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 2px solid #e2e8f0;
}

/* Notifications */
.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--light-color);
    transition: background 0.3s;
}

.notification-item:hover {
    background: var(--light-color);
}

.notification-item.unread {
    background: #e7f3ff;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

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

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #075985;
    border-left: 4px solid #06b6d4;
}

/* Page Header */
.page-header {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}

.page-header .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.filter-section .row {
    align-items: end;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-pill.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.inactive {
    background: #f1f5f9;
    color: #475569;
}

.status-pill.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Quick Actions Card */
.quick-action-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-lg);
    border-color: var(--primary-color);
}

.quick-action-card i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.quick-action-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.table-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--card-shadow);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #06b6d4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.info-box i {
    color: #06b6d4;
    margin-right: 8px;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: var(--card-shadow); }
.shadow-lg { box-shadow: var(--card-shadow-lg); }

.rounded-sm { border-radius: 8px; }
.rounded { border-radius: 12px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }

.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.text-muted { color: var(--secondary-color); }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Topbar User Profile & Notifications */
.top-navbar .dropdown {
    position: relative;
    z-index: 1060;
}

.user-profile-btn {
    padding: 8px 12px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.user-profile-btn:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.user-profile-btn .avatar {
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.notification-btn:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.notification-btn:hover i {
    color: var(--primary-color) !important;
}

.notification-badge {
    font-size: 10px;
    padding: 3px 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* User Dropdown */
.user-dropdown {
    border: none;
    border-radius: 16px;
    padding: 8px 0;
    min-width: 280px;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1050 !important;
    position: relative;
}

.user-dropdown .dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    margin: 4px 8px 8px;
}

.user-dropdown .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.user-dropdown .dropdown-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
    padding-left: 24px;
}

.user-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.user-dropdown .logout-item {
    color: var(--danger-color) !important;
    font-weight: 600;
}

.user-dropdown .logout-item:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.user-dropdown .logout-item i {
    color: var(--danger-color);
}

/* Notification Dropdown */
.notification-dropdown {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: 360px;
    max-height: 500px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1050 !important;
    position: relative;
}

.notification-dropdown .dropdown-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

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

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 3px solid var(--primary-color);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-item strong {
    font-size: 14px;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.notification-item small {
    font-size: 12px;
    line-height: 1.4;
}

/* Avatar Enhancements */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar-lg {
    width: 48px;
    height: 48px;
}

/* Profile Picture Upload Styles */
.profile-pic-container {
    position: relative;
    display: inline-block;
}

.profile-pic-container img,
.profile-pic-container > div {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.profile-pic-container:hover img,
.profile-pic-container:hover > div {
    transform: scale(1.05);
}

.profile-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    z-index: 10;
}

.profile-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Dropdown Animations */
.dropdown-menu {
    animation: dropdownFadeIn 0.3s ease;
    z-index: 1050 !important;
}

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

/* Enhanced Bootstrap Background Colors for Better Visibility */
.bg-primary {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}

.bg-success {
    background-color: #059669 !important;
    color: #ffffff !important;
}

.bg-warning {
    background-color: #ea580c !important;
    color: #ffffff !important;
}

.bg-info {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

.bg-danger {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Stats Icon Enhancements */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15);
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
}

.stats-icon.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* Stats Card Styling */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stats-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
}

.stats-info p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #64748b;
}

/* Ensure white text on all colored backgrounds */
.bg-primary *, .bg-success *, .bg-warning *, .bg-info *, .bg-danger * {
    color: white !important;
}

/* DC Performance page card header overrides */
.card-header[style*="background-color: #333"] {
    background: #333 !important;
    color: #fff !important;
}
.card-header[style*="background-color: #333"] h5 {
    color: #fff !important;
}

/* Table header visibility fix for all pages */
thead[style*="background-color: #333"] th {
    color: #fff !important;
    background-color: #333 !important;
}
table.table thead th {
    color: inherit;
}
