:root {
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(5, 150, 105, 0.85) 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(107, 107, 107, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --blur-intensity: 12px;
}

[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(79, 172, 254, 0.85) 0%, rgba(0, 242, 254, 0.85) 100%);
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
}

/* Color Themes */
/* Color Themes */
[data-color-theme="purple"] {
    --theme-primary: #8b5cf6;
    --theme-secondary: #a855f7;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.85) 0%, rgba(168, 85, 247, 0.85) 100%);
}

[data-color-theme="blue"] {
    --theme-primary: #3b82f6;
    --theme-secondary: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
}

[data-color-theme="green"] {
    --theme-primary: #10b981;
    --theme-secondary: #059669;
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(5, 150, 105, 0.85) 100%);
}

[data-color-theme="orange"] {
    --theme-primary: #f59e0b;
    --theme-secondary: #d97706;
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(245, 158, 11, 0.85) 0%, rgba(217, 119, 6, 0.85) 100%);
}

[data-color-theme="teal"] {
    --theme-primary: #14b8a6;
    --theme-secondary: #0d9488;
    --primary-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(20, 184, 166, 0.85) 0%, rgba(13, 148, 136, 0.85) 100%);
}

[data-color-theme="rose"] {
    --theme-primary: #f43f5e;
    --theme-secondary: #e11d48;
    --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --sidebar-gradient: linear-gradient(135deg, rgba(244, 63, 94, 0.85) 0%, rgba(225, 29, 72, 0.85) 100%);
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background pattern for better glass effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.1) 0%, transparent 55%);
    z-index: -1;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.light-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sidebar Styles */
.sidebar {
    background: var(--sidebar-gradient);
    min-height: 100vh;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    z-index: 1000;
    width: var(--sidebar-width);
    overflow-y: auto;
    overflow-x: hidden;
    left: 0;
    top: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width) !important;
}

.sidebar.collapsed .sidebar-text {
    display: none !important;
    opacity: 0;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .logo-text {
    display: none !important;
}

.sidebar.collapsed .user-info {
    display: none !important;
}

/* Improved logo styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.logo {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.sidebar.collapsed .logo {
    width: 45px;
    height: 45px;
    margin: 0 auto;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.sidebar .nav-link:hover::before {
    left: 100%;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    z-index: -1;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Stats Cards */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Navbar */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    /* Slightly more opaque for better visibility */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1rem;
    /* Consistent padding */
}

/* Ensure flex container has gap */
.navbar-glass .d-flex.align-items-center {
    gap: 0.5rem;
}

/* Toggle Buttons */
.toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Hide Bootstrap dropdown caret */
.toggle-btn.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

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

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

.toggle-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
    /* Slightly reduced scale for better feel */
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Add shadow on hover */
}

/* Ensure icons inside are centered and have correct color on hover */
.toggle-btn i {
    z-index: 1;
    transition: color 0.3s ease;
}

.toggle-btn:hover i {
    color: white !important;
    /* Force white icon on hover */
}

/* Fix text-secondary inside button on hover */
.toggle-btn:hover .text-secondary {
    color: white !important;
}

/* Quick Actions */
.action-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

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

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Color Theme Buttons */
.theme-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.theme-btn.active {
    border-color: var(--text-primary);
}

.theme-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.theme-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

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

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

.theme-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.theme-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

/* Custom colors for stats */
.text-purple {
    color: #8b5cf6 !important;
}

.text-indigo {
    color: #4f46e5 !important;
}

.text-pink {
    color: #ec4899 !important;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

.bg-indigo {
    background-color: #4f46e5 !important;
}

.bg-pink {
    background-color: #ec4899 !important;
}

/* Badge positioning fix */
.dropdown .toggle-btn {
    position: relative;
}


/* Sidebar toggle animation */
.sidebar,
.main-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Toggle Button */
.header-toggle-btn {
    margin-right: 1rem;
}

.fa-check-circle:before,
.fa-circle-check:before {
    content: "\f058";
    color: #fff;
}

.fa-money-bill-wave:before {
    content: "\f53a";
    color: #fff;
}

.fa-chart-line:before,
.fa-line-chart:before {
    content: "\f201";
    color: #fff;
}

/* Color Theme Selector in Header */
.header-theme-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 1rem;
    padding: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.theme-selector-label {
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    white-space: nowrap;
}

/* Chart and Calendar Styles */
.chart-container,
.calendar-container,
.report-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.chart-container:hover,
.calendar-container:hover,
.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.chart-container::before,
.calendar-container::before,
.report-card::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.7s ease;
}

.chart-container:hover::before,
.calendar-container:hover::before,
.report-card:hover::before {
    left: 100%;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.calendar-date {
    text-align: center;
    padding: 0.7rem 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-date:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-date.active {
    background: var(--primary-gradient);
    color: white;
}

.calendar-date.other-month {
    color: var(--text-secondary);
    opacity: 0.5;
}

.chart-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 1rem;
}

/* Report Cards */
.report-card {
    text-align: center;
}

.report-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.report-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.report-change {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.report-change.positive {
    color: #10b981;
}

.report-change.negative {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        height: auto;
        position: relative;
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .sidebar.collapsed {
        width: 100% !important;
        transform: translateX(-100%);
    }

    .sidebar.collapsed .sidebar-text {
        display: inline !important;
    }

    .header-theme-selector {
        display: none;
    }
}

/* Ensure proper spacing */
.container-fluid.p-4 {
    padding: 1.5rem !important;
}

/* Smooth transitions for all elements */
.sidebar * {
    transition: all 0.3s ease;
}

/* Welcome section */
.welcome-section {
    position: relative;
    overflow: hidden;
}

.welcome-section::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.8s ease;
}

.welcome-section:hover::before {
    left: 100%;
}

/* Theme-based Button Styles */
.btn-theme-primary {
    background: var(--primary-gradient) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-theme-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn-theme-primary:hover::before {
    left: 100%;
}

.btn-theme-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white !important;
}

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

/* Glassy Card */
.glass-card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
}

/* DataTable Glass Style */
table.dataTable {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}

table.dataTable thead th {
    background: rgba(255, 255, 255, 0.5) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.avatar-placeholder {
    font-weight: bold;
    font-size: 16px;
}

.table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

@media (max-width: 768px) {
    .table-responsive {
        border: 0;
    }

    .form-control {
        font-size: 14px;
        padding: 6px 10px;
    }

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


.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 0.25rem;
}

/* Bootstrap 5 badge colors with better visibility */
.badge.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

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

.badge.bg-success {
    background-color: #198754 !important;
    color: white !important;
}

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

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
    color: white !important;
}

/* Make status badges more visible */
.badge.bg-success,
.badge.bg-danger {
    color: white !important;
    padding: 0.4em 0.8em;
    cursor: pointer;
    transition: all 0.2s;
}

.badge.bg-success:hover,
.badge.bg-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
}

/* Glass card styling (if you want to keep it) */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.avatar-placeholder {
    font-weight: bold;
    font-size: 16px;
}

.table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Theme-based button for delete */
.btn-theme-danger {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-theme-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn-theme-danger:hover::before {
    left: 100%;
}

.btn-theme-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white !important;
}

/* Status toggle button */
.status-toggle-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.4em 0.8em;
}

.status-toggle-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Modal backdrop fix */
.modal-backdrop {
    backdrop-filter: blur(5px);
}

.avatar-placeholder {
    font-weight: bold;
    font-size: 16px;
}

.table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* User Avatar Styles */
/* User Avatar Styles */
.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dropdown User Info */
.dropdown-header img {
    border: 2px solid var(--theme-primary);
}

.dropdown-header h6 {
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-header small {
    font-size: 0.75rem;
}

/* Dropdown Items */
.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: var(--theme-primary);
    color: rgb(14, 14, 14);
}

.dropdown-item:hover i {
    color: rgb(0, 0, 0);
}

/* Notification Badge */
.toggle-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    /* Brighter red */
    color: white;
    font-size: 0.65rem;
    padding: 0;
    width: 18px;
    height: 18px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
    /* White border to separate from button */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .toggle-btn {
        padding: 0.25rem;
    }
}

/* Dark Mode Adjustments */
.dark-mode .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .dropdown-item {
    color: var(--text-color);
}

.dark-mode .dropdown-item:hover {
    background-color: var(--theme-primary);
    color: white;
}

.dark-mode .dropdown-header {
    border-bottom-color: var(--border-color);
}

.dark-mode .dropdown-header h6 {
    color: var(--text-color);
}

.dark-mode .dropdown-header small {
    color: #adb5bd;
}

.notification-dropdown-menu {
    width: 320px;
    max-height: 450px;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0;
}

.notification-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    color: white;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: #4a5568;
}

.notification-item:hover {
    background-color: #f8fafc;
    padding-left: 25px;
}

.notification-item.unread {
    background-color: #f0f4ff;
}

.notification-item.unread:hover {
    background-color: #e6eeff;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2d3748;
}

.notification-footer {
    padding: 10px;
    text-align: center;
    background-color: #f8fafc;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #edf2f7;
}

.notification-footer a {
    color: #667eea;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
}

.notification-badge {
    background: #f56565;
    border: 2px solid white;
}

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

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.activity-item {
    position: relative;
    margin-bottom: 25px;
}

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

.activity-icon {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #667eea;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.activity-icon i {
    font-size: 10px;
    color: #667eea;
}

.activity-content {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-content:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.activity-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-user {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-top: 5px;
    font-style: italic;
}

/* Specific Activity Colors */
.activity-item.purchase .activity-icon {
    border-color: #8b5cf6;
}

.activity-item.purchase .activity-icon i {
    color: #8b5cf6;
}

.activity-item.request .activity-icon {
    border-color: #f59e0b;
}

.activity-item.request .activity-icon i {
    color: #f59e0b;
}

.activity-item.issue .activity-icon {
    border-color: #10b981;
}

.activity-item.issue .activity-icon i {
    color: #10b981;
}

.activity-item.reject .activity-icon {
    border-color: #ef4444;
}

.activity-item.reject .activity-icon i {
    color: #ef4444;
}

/* Quick Action Cards */
.quick-action-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.quick-action-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.quick-action-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}