:root {
     --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
     --danger-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
     --warning-gradient: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
     --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
     --sidebar-bg: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
     --sidebar-width: 280px;
     --topbar-height: 70px;
     --border-radius: 16px;
     --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
     --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}

a {
    text-decoration: none;
}

 body {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
     background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
     min-height: 100vh;
     font-size: 14px;
     line-height: 1.6;
}
/* Sidebar Styles */
 .sidebar {
     position: fixed;
     top: 0;
     left: 0;
     height: 100vh;
     width: var(--sidebar-width);
     background: var(--sidebar-bg);
     z-index: 1000;
     transform: translateX(0);
     transition: var(--transition);
     overflow-y: auto;
     border-right: 1px solid rgba(255, 255, 255, 0.1);
}
 .sidebar::-webkit-scrollbar {
     width: 4px;
}
 .sidebar::-webkit-scrollbar-track {
     background: transparent;
}
 .sidebar::-webkit-scrollbar-thumb {
     background: rgba(255, 255, 255, 0.2);
     border-radius: 2px;
}
 .sidebar-brand {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     margin: 20px 15px;
     border-radius: var(--border-radius);
     padding: 20px;
     text-align: center;
     border: 1px solid rgba(255, 255, 255, 0.1);
}
 .sidebar-brand-text {
     color: white;
     font-weight: 800;
     font-size: 1.2rem;
}
 .sidebar-brand-icon {
     font-size: 2rem;
     margin-bottom: 10px;
     color: #ffd700;
}
 .sidebar-heading {
     color: rgba(255, 255, 255, 0.6);
     font-size: 0.75rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
     margin: 20px 20px 10px 20px;
}
 .nav-item {
     margin: 3px 15px;
}
 .nav-link {
     color: rgba(255, 255, 255, 0.8) !important;
     padding: 12px 16px;
     border-radius: 12px;
     transition: var(--transition);
     display: flex;
     align-items: center;
     font-weight: 500;
     text-decoration: none;
     border: 1px solid transparent;
}
 .nav-link:hover {
     background: rgba(255, 255, 255, 0.15) !important;
     color: white !important;
     transform: translateX(5px);
     border-color: rgba(255, 255, 255, 0.2);
}
 .nav-link.active {
     background: rgba(255, 255, 255, 0.2) !important;
     color: white !important;
     border-color: rgba(255, 255, 255, 0.3);
}
 .nav-link i {
     width: 20px;
     margin-right: 12px;
     text-align: center;
}
/* Main Content */
 .main-content {
     margin-left: var(--sidebar-width);
     min-height: 100vh;
     transition: var(--transition);
}
/* Topbar */
 .topbar {
     height: var(--topbar-height);
     background: #2f4255;
     border: none;
     box-shadow: 0 2px 10px rgba(0,0,0,0.1);
     padding: 0 1.5rem;
     position: fixed;
     top: 0;
     left: var(--sidebar-width);
     right: 0;
     z-index: 999;
     transition: var(--transition);
}

 .topbar .navbar-brand {
     color: white;
     font-weight: 600;
     font-size: 1.1rem;
     margin: 0;
}

 .topbar .user-dropdown {
     color: white;
     text-decoration: none;
     border: none;
     background: none;
     transition: all 0.2s ease;
}

 .topbar .user-dropdown:hover {
     color: rgba(255,255,255,0.8);
}

 .topbar .img-profile {
     width: 32px;
     height: 32px;
     object-fit: cover;
}

 .topbar .dropdown-menu {
     border: none;
     box-shadow: 0 4px 20px rgba(0,0,0,0.15);
     border-radius: 8px;
     margin-top: 0.5rem;
     min-width: 200px;
}

 .topbar .dropdown-item {
     color: #495057;
     transition: all 0.2s ease;
     display: flex;
     align-items: center;
}

 .topbar .dropdown-item:hover {
     background-color: #f8f9fa;
     color: #ffffff;
}

 .topbar .dropdown-item.text-danger {
     color: #dc3545 !important;
}

 .topbar .dropdown-item.text-danger:hover {
     background-color: #f8d7da;
     color: #721c24 !important;
}
/* User Dropdown */
 .user-dropdown {
     background: white;
     border-radius: 50px;
     padding: 8px 16px;
     box-shadow: var(--box-shadow);
     border: 1px solid rgba(0, 0, 0, 0.08);
     transition: var(--transition);
}
 .user-dropdown:hover {
     transform: translateY(-2px);
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
 .img-profile {
     width: 35px;
     height: 35px;
     border: 2px solid white;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* Content Area */
 .container-fluid {
     padding: 30px;
     max-width: 1400px;
}
/* Dashboard Header */
 .dashboard-header {
     background: var(--primary-gradient);
     color: white;
     border-radius: var(--border-radius);
     padding: 30px;
     margin-bottom: 30px;
     box-shadow: var(--box-shadow);
     position: relative;
     overflow: hidden;
}
 .dashboard-header::before {
     content: '';
     position: absolute;
     top: 0;
     right: 0;
     width: 200px;
     height: 200px;
     background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
     opacity: 0.3;
}
 .dashboard-header h2 {
     font-size: 2rem;
     font-weight: 700;
     margin-bottom: 8px;
}
/* Quick Action Buttons */
 .quick-action-btn {
     border-radius: 50px;
     padding: 12px 24px;
     font-weight: 600;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     transition: var(--transition);
     margin: 5px;
     border: 2px solid rgba(255, 255, 255, 0.3);
     backdrop-filter: blur(10px);
}
 .quick-action-btn:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
     border-color: rgba(255, 255, 255, 0.5);
}
/* Metric Cards */
 .metric-card {
     border-radius: var(--border-radius);
     border: none;
     overflow: hidden;
     transition: var(--transition);
     position: relative;
     cursor: pointer;
}
 .metric-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: inherit;
     opacity: 0.9;
     z-index: 1;
}
 .metric-card:hover {
     transform: translateY(-8px) scale(1.02);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
 .metric-card .card-body {
     position: relative;
     z-index: 2;
     height: 100%;
     display: flex;
     align-items: center;
}
 .metric-card.primary {
     background: var(--primary-gradient);
     color: white;
}
 .metric-card.success {
     background: var(--success-gradient);
     color: white;
}
 .metric-card.danger {
     background: var(--danger-gradient);
     color: white;
}
 .metric-card.warning {
     background: var(--warning-gradient);
     color: white;
}
 .metric-icon {
     width: 70px;
     height: 70px;
     border-radius: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(10px);
     margin-right: 20px;
     border: 1px solid rgba(255, 255, 255, 0.3);
}
 .metric-value {
     font-size: 1.5rem;
     font-weight: 800;
     margin-bottom: 5px;
     line-height: 1;
}
 .metric-label {
     font-size: 0.9rem;
     opacity: 0.9;
     font-weight: 500;
}
/* Chart Cards */
 .chart-card {
     border-radius: var(--border-radius);
     border: none;
     box-shadow: var(--box-shadow);
     overflow: hidden;
     background: white;
     transition: var(--transition);
}
 .chart-card:hover {
     transform: translateY(-4px);
     box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
 .chart-card .card-header {
     background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
     border-bottom: 1px solid rgba(0, 0, 0, 0.08);
     padding: 20px;
}
 .chart-card .card-title {
     font-size: 1.1rem;
     font-weight: 700;
     color: #2c3e50;
}
/* Progress Bars */
 .progress {
     height: 12px;
     border-radius: 10px;
     background: rgba(0, 0, 0, 0.05);
     overflow: hidden;
}
 .progress-bar {
     border-radius: 10px;
     transition: var(--transition);
}
/* Tables */
 .table-modern {
     border-radius: 12px;
     overflow: hidden;
     box-shadow: none;
}
 .table-modern thead {
     background: var(--primary-gradient);
     color: white;
}
 .table-modern thead th {
     border: none;
     font-weight: 600;
     text-transform: uppercase;
     font-size: 0.75rem;
     letter-spacing: 0.5px;
     padding: 18px 20px;
}
 .table-modern tbody tr {
     transition: var(--transition);
     border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
 .table-modern tbody tr:hover {
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
     transform: scale(1.01);
}
 .table-modern tbody td {
     padding: 16px 20px;
     vertical-align: middle;
     border: none;
}
/* Chart Placeholder */
 .chart-container {
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-direction: column;
     border: 2px dashed #dee2e6;
     transition: var(--transition);
}
 .chart-container:hover {
     border-color: #adb5bd;
     background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}
/* Statistics Page Styles */
.statistics-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.statistics-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

.statistics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.statistics-card .card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.statistics-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.statistics-card .card-header h6 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.statistics-card .card-body {
    padding: 30px;
}

/* Date Filter Section */
.date-filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--box-shadow);
}

.date-filter-section .form-control {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.date-filter-section .form-control:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.date-filter-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-section p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.summary-section span {
    font-weight: 700;
    color: #667eea;
}

.summary-totals {
    background: var(--success-gradient);
    color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.summary-totals::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.summary-totals b {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.summary-totals hr {
    border-color: rgba(255, 255, 255, 0.3);
    margin: 15px 0;
}

.payment-methods {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-methods ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-methods li {
    background: white;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.payment-methods li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Tables Enhancement */
.statistics-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.statistics-table h6 {
    background: var(--primary-gradient);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.statistics-table .table-responsive {
    border-radius: 0;
}

.statistics-table .table {
    margin: 0;
    border-radius: 0;
}

.statistics-table .table thead {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

.statistics-table .table thead th {
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.statistics-table .table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.statistics-table .table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.01);
}

.statistics-table .table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border: none;
    font-weight: 500;
}

.statistics-table .table tbody td.text-center {
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .statistics-page {
        padding: 10px;
    }
    
    .statistics-card .card-body {
        padding: 20px;
    }
    
    .date-filter-section {
        padding: 20px;
    }
    
    .summary-section {
        padding: 20px;
    }
    
    .statistics-table h6 {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .statistics-table .table thead th,
    .statistics-table .table tbody td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Statistics Styles */
.statistics-card .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.summary-section {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.date-filter-section {
    position: relative;
    overflow: hidden;
}

.date-filter-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: move 20s linear infinite;
    pointer-events: none;
}

@keyframes move {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.statistics-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.payment-methods li:last-child {
    margin-bottom: 0;
}

.summary-totals {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Icon animations */
.statistics-card .card-header h6 {
    position: relative;
    z-index: 2;
}

.search-btn {
    position: relative;
    overflow: hidden;
}

.search-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;
}

.search-btn:hover::before {
    left: 100%;
}

/* Table row animations */
.statistics-table .table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.statistics-table .table tbody tr:hover {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form enhancements */
.date-filter-section .form-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

.date-filter-section .form-control::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .summary-totals b {
        font-size: 0.9rem;
    }
    
    .payment-methods li {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .statistics-table h6 {
        font-size: 0.95rem;
    }
}

/* Alerts */
 .alert {
     border: none;
     border-radius: 12px;
     padding: 16px 20px;
}
/* Responsive Design */
 @media (max-width: 1199.98px) {
     :root {
         --sidebar-width: 260px;
    }
     .container-fluid {
         padding: 20px;
    }
}
 @media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
   }
    .sidebar.show,
    .sidebar.active {
        transform: translateX(0);
        visibility: visible;
   }
    .main-content {
        margin-left: 0;
   }
     .dashboard-header h2 {
         font-size: 1.4rem;
    }
     .quick-action-btn {
         padding: 10px 20px;
         font-size: 0.9rem;
    }
}
 @media (max-width: 767.98px) {
     .container-fluid {
         padding: 0.25rem 0.5rem;
    }
     .dashboard-header {
         padding: 20px;
         margin-bottom: 20px;
    }
     .metric-card {
         height: 120px;
         margin-bottom: 15px;
    }
     .metric-value {
         font-size: 1.8rem;
    }
     .metric-icon {
         width: 60px;
         height: 60px;
         margin-right: 15px;
    }
     .chart-card .card-header {
         padding: 15px;
    }
     .topbar {
         padding-left: 60px;
         height: 55px;
    }
     .topbar .navbar-brand {
         font-size: 1rem;
         margin-left: 5px;
    }
     .sidebar-toggle {
         top: 10px;
         left: 10px;
         padding: 10px;
    }
}
 @media (max-width: 575.98px) {
     .dashboard-header h2 {
         font-size: 1.3rem;
    }
     .quick-action-btn {
         padding: 8px 16px;
         font-size: 0.85rem;
         margin: 3px;
    }
     .metric-card {
         height: 100px;
    }
     .metric-value {
         font-size: 1.5rem;
    }
     .metric-icon {
         width: 50px;
         height: 50px;
         margin-right: 10px;
    }
     .table-responsive {
         font-size: 0.85rem;
    }
     .topbar {
         padding-left: 55px;
         height: 50px;
         padding-right: 10px;
    }
     .topbar .navbar-brand {
         font-size: 0.9rem;
         margin-left: 0;
    }
     .topbar .dropdown-toggle {
         font-size: 0.85rem;
         padding: 5px 10px;
    }
     .sidebar-toggle {
         top: 8px;
         left: 8px;
         padding: 8px;
         font-size: 0.9rem;
    }
}
/* Mobile Sidebar Toggle */
 .sidebar-toggle {
     display: none;
     position: fixed;
     top: 9px;
     left: 15px;
     z-index: 1001;
     background: var(--primary-gradient);
     color: white;
     border: none;
     padding: 12px;
     border-radius: 12px;
     box-shadow: var(--box-shadow);
     transition: var(--transition);
}
 .sidebar-toggle:hover {
     transform: scale(1.1);
}
 @media (max-width: 991.98px) {
     .sidebar-toggle {
         display: block;
    }
     .topbar {
         left: 0;
         padding-left: 70px;
         height: 60px;
         display: flex;
         align-items: center;
         justify-content: space-between;
    }
     .topbar .navbar-brand {
         font-size: 1.1rem;
         margin-left: 10px;
    }
     .topbar .dropdown {
         margin-right: 0;
    }
     .main-content {
         margin-left: 0;
         padding-top: 60px;
    }
}
/* Loading Animation */
 .loading-shimmer {
     background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
     background-size: 200% 100%;
     animation: shimmer 2s infinite;
}
 @keyframes shimmer {
     0% {
         background-position: -200% 0;
    }
     100% {
         background-position: 200% 0;
    }
}
/* Floating Action Button */
 .fab {
     position: fixed;
     bottom: 20px;
     right: 20px;
     background: var(--primary-gradient);
     color: white;
     border: none;
     border-radius: 50%;
     width: 60px;
     height: 60px;
     font-size: 1.5rem;
     box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
     transition: var(--transition);
     z-index: 1000;
}
 .fab:hover {
     transform: scale(1.1) rotate(90deg);
     box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}
/* Additional Styles from Theme */
 .dropdown-menu {
     border: none;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
     border-radius: 12px;
     /* padding: 8px 0; */
     margin-top: 8px;
}
 .dropdown-item {
     padding: 10px 1rem;
     transition: var(--transition);
     border-radius: 8px;
}
 .dropdown-item:hover {
     background: var(--primary-gradient);
     color: white;
     transform: translateX(5px);
}
 .dropdown-divider {
     margin: 8px 0;
     border-color: rgba(0, 0, 0, 0.08);
}
/* Badge Styles */
 .badge {
     font-weight: 600;
     padding: 6px 12px;
     border-radius: 8px;
     font-size: 0.75rem;
}
/* Code Styles */
 code {
     font-family: 'Monaco', 'Menlo', monospace;
     font-size: 0.8rem;
     font-weight: 600;
}
/* Footer Styles */
 footer {
     margin-top: 40px;
     border-top: 1px solid rgba(0, 0, 0, 0.08);
     background: white;
}
/* Animation Classes */
 .animate-fade-in {
     animation: fadeIn 0.6s ease-out;
}
 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(20px);
    }
     to {
         opacity: 1;
         transform: translateY(0);
    }
}
/* Table Row Hover Effects */
 .table-modern tbody tr:hover {
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
     transform: scale(1.01);
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Enhanced Card Interactions */
 .card:hover {
     transform: translateY(-2px);
}
/* Quick Stats Cards */
 .quick-stats-card {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     border-radius: 15px;
     padding: 20px;
     margin-bottom: 20px;
     box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
     transition: all 0.3s ease;
}
 .quick-stats-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}
 .quick-stats-card .icon {
     font-size: 2.5rem;
     margin-bottom: 15px;
     opacity: 0.8;
}
 .quick-stats-card .value {
     font-size: 2rem;
     font-weight: 800;
     margin-bottom: 5px;
}
 .quick-stats-card .label {
     font-size: 0.9rem;
     opacity: 0.9;
}
/* Position Badge */
 .position-badge {
     width: 30px;
     height: 30px;
     display: flex;
     align-items: center;
     justify-content: center;
}
/* Chart Container */
 .chart-container {
     background: white;
     border-radius: 12px;
     padding: 20px;
     box-shadow: 0 2px 10px rgba(0,0,0,0.1);
     margin-bottom: 20px;
}
/* Loading Shimmer Animation */
 .loading-shimmer {
     background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
     background-size: 200% 100%;
     animation: shimmer 1.5s infinite;
}
 @keyframes shimmer {
     0% {
         background-position: -200% 0;
    }
     100% {
         background-position: 200% 0;
    }
}
/* Enhanced Card Animations */
 .metric-card {
     transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
     cursor: pointer;
}
 .metric-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
/* Table Row Animations */
 .table-modern tbody tr {
     transition: all 0.2s ease;
     position: relative;
}
 .table-modern tbody tr:hover {
     background-color: #f8f9fa;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Sidebar Show State for Mobile */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1002;
        visibility: hidden;
   }
    .sidebar.show,
    .sidebar.active {
        transform: translateX(0);
        visibility: visible;
   }
    /* Overlay for mobile sidebar */
    .sidebar.show::before,
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: var(--sidebar-width);
        width: calc(100vw - var(--sidebar-width));
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
   }
}
/* Login Page Styles */
 .login-body {
     background: var(--primary-gradient);
     font-family: 'Nunito', sans-serif;
     min-height: 100vh;
}
 .login-container {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
}
 .login-card {
     background: white;
     border-radius: 20px;
     box-shadow: var(--box-shadow);
     overflow: hidden;
     width: 100%;
     max-width: 400px;
     animation: slideUp 0.6s ease-out;
}
 .login-header {
     background: var(--primary-gradient);
     color: white;
     text-align: center;
     padding: 40px 30px 30px;
}
 .login-icon {
     width: 80px;
     height: 80px;
     background: rgba(255, 255, 255, 0.2);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 20px;
     font-size: 2rem;
}
 .login-title {
     font-size: 1.8rem;
     font-weight: 600;
     margin-bottom: 8px;
}
 .login-subtitle {
     font-size: 0.95rem;
     opacity: 0.9;
     margin: 0;
}
 .login-form {
     padding: 30px;
}
 .login-form .input-group-text {
     background: var(--primary-gradient);
     color: white;
     border: none;
     width: 45px;
     justify-content: center;
}
 .login-form .form-control {
     border-left: none;
     padding: 12px 15px;
     font-size: 0.95rem;
}
 .login-form .form-control:focus {
     border-color: var(--primary-color);
     box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}
 .login-btn {
     background: var(--primary-gradient);
     border: none;
     padding: 12px 20px;
     font-size: 1rem;
     font-weight: 600;
     border-radius: 10px;
     transition: var(--transition);
}
 .login-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}
 .form-check-label {
     font-size: 0.9rem;
     color: #666;
}
 @keyframes slideUp {
     from {
         opacity: 0;
         transform: translateY(30px);
    }
     to {
         opacity: 1;
         transform: translateY(0);
    }
}
/* Bootstrap Tables Enhancement */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: none;
    margin-bottom: 0;
}

.table thead th {
    border: none;
    padding: 15px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    transition: var(--transition);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered {
    border: 1px solid #e9ecef;
}

.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Bootstrap Buttons Enhancement */
.btn {
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    color: white;
}

.btn-success {
    background: var(--success-gradient);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d4ff 100%);
    color: white;
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e081f5 0%, #e8455a 100%);
    color: white;
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffcc7a 0%, #1a4a6b 100%);
    color: white;
}

.btn-info {
    background: var(--info-gradient);
    color: #333;
}

.btn-info:hover {
    background: linear-gradient(135deg, #96e6e3 0%, #f5c6d3 100%);
    color: #333;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4449 100%);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Bootstrap Cards Enhancement */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: none;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
}

.close {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    position: relative;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Bootstrap Pagination Enhancement */
.pagination {
    margin: 20px 0;
    justify-content: center;
}

.page-link {
    transition: var(--transition);
    font-weight: 500;
}

.page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

/* Bootstrap Forms Enhancement */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-group-text {
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 500;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Bootstrap Alerts Enhancement */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    font-weight: 500;
    box-shadow: var(--box-shadow);
}

.alert-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-left: 4px solid #667eea;
}

.alert-success {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    color: #4facfe;
    border-left: 4px solid #4facfe;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #f5576c;
    border-left: 4px solid #f5576c;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 216, 155, 0.1) 0%, rgba(25, 84, 123, 0.1) 100%);
    color: #19547b;
    border-left: 4px solid #ffd89b;
}

/* Bootstrap Modals Enhancement */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Login Mobile Responsive */
 @media (max-width: 576px) {
     .login-container {
         padding: 15px;
    }
     .login-header {
         padding: 30px 20px 25px;
    }
     .login-icon {
         width: 60px;
         height: 60px;
         font-size: 1.5rem;
         margin-bottom: 15px;
    }
     .login-title {
         font-size: 1.5rem;
    }
     .login-subtitle {
         font-size: 0.9rem;
    }
     .login-form {
         padding: 25px 20px;
    }
     .login-form .form-control {
         padding: 10px 12px;
         font-size: 0.9rem;
    }
     .login-btn {
         padding: 10px 15px;
         font-size: 0.95rem;
    }
}
