/**
 * Modern Dashboard Styles
 * Enhanced styling for the home/dashboard page
 */

/* ============================================
   DASHBOARD PAGE HEADER
   ============================================ */
.content-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    min-height: 100vh;
}

/* Dashboard top gradient banner */
.tw-bg-gradient-to-r.tw-from-primary-800 {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%) !important;
}

/* ============================================
   STAT CARDS / INFO BOXES
   ============================================ */
.tw-ring-1.tw-ring-gray-200 {
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tw-ring-1.tw-ring-gray-200:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px) !important;
}

/* Icon circles in stat cards */
.tw-rounded-full.tw-bg-sky-100,
.tw-rounded-full.tw-bg-green-100,
.tw-rounded-full.tw-bg-yellow-100,
.tw-rounded-full.tw-bg-red-100 {
    transition: transform 0.3s ease !important;
}

.tw-ring-1.tw-ring-gray-200:hover .tw-rounded-full {
    transform: scale(1.1);
}

/* Stat values - make them more prominent */
.tw-font-mono.tw-font-semibold {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CHART CONTAINERS
   ============================================ */
.tw-border-dashed.tw-rounded-xl.tw-bg-gray-50 {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: #e2e8f0 !important;
    border-style: solid !important;
}

/* Chart title icons */
.tw-border-2.tw-rounded-full {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border-color: #e2e8f0 !important;
}

/* ============================================
   DASHBOARD CARDS HEADER
   ============================================ */
.tw-font-bold.tw-text-base.lg\:tw-text-xl {
    color: #1e293b !important;
    letter-spacing: -0.025em;
}

/* ============================================
   DATE FILTER BUTTON
   ============================================ */
#dashboard_date_filter {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

#dashboard_date_filter:hover {
    background: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   LOCATION SELECT DROPDOWNS
   ============================================ */
.select2-container--default .select2-selection--single {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    height: 40px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 14px !important;
    color: #334155 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    margin-top: 4px !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    transition: background-color 0.15s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* ============================================
   DASHBOARD TABLES (embedded in cards)
   ============================================ */
.tw-p-4.sm\:tw-p-5 table.dataTable {
    font-size: 13px !important;
}

.tw-p-4.sm\:tw-p-5 table.dataTable thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    font-size: 11px !important;
    padding: 10px 12px !important;
}

.tw-p-4.sm\:tw-p-5 table.dataTable tbody td {
    padding: 8px 12px !important;
}

/* ============================================
   INFO TOOLTIPS
   ============================================ */
.hover-q {
    color: #3b82f6 !important;
    cursor: help;
    transition: color 0.2s ease;
}

.hover-q:hover {
    color: #2563eb !important;
}

.popover {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

.popover-title {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 11px 11px 0 0 !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.popover-content {
    padding: 12px 16px !important;
    color: #475569 !important;
}

/* ============================================
   ACTION BUTTONS IN DASHBOARD - IMPROVED GRADIENTS
   ============================================ */
.tw-dw-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}

.tw-dw-btn:hover {
    transform: translateY(-2px);
}

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

.tw-dw-btn-primary {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-primary-dark, #2563eb) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
}

.tw-dw-btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-dark, #2563eb) 0%, var(--theme-primary-darker, #1d4ed8) 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45) !important;
}

/* ============================================
   GLOBAL GRADIENT BUTTONS (All Add/Action Buttons)
   ============================================ */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary, #3b82f6) 0%, var(--theme-primary-dark, #2563eb) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-dark, #2563eb) 0%, var(--theme-primary-darker, #1d4ed8) 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
}

.btn-primary:active,
a.btn-primary:active,
button.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

/* Success/Green Buttons */
.btn-success,
a.btn-success,
button.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

.btn-success:hover,
a.btn-success:hover,
button.btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
    transform: translateY(-2px);
}

/* Danger/Red Buttons */
.btn-danger,
a.btn-danger,
button.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

.btn-danger:hover,
a.btn-danger:hover,
button.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px);
}

/* Warning/Yellow Buttons */
.btn-warning,
a.btn-warning,
button.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

.btn-warning:hover,
a.btn-warning:hover,
button.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-2px);
}

/* Info/Cyan Buttons */
.btn-info,
a.btn-info,
button.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
}

.btn-info:hover,
a.btn-info:hover,
button.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4) !important;
    transform: translateY(-2px);
}

/* Default/Secondary Buttons */
.btn-default,
a.btn-default,
button.btn-default {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #475569 !important;
}

.btn-default:hover,
a.btn-default:hover,
button.btn-default:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
    color: #1e293b !important;
}

/* ============================================
   ONLINE STATUS INDICATOR
   ============================================ */
.tw-bg-green-400.tw-rounded-full {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

/* ============================================
   WELCOME MESSAGE
   ============================================ */
h1.tw-text-2xl.md\:tw-text-4xl {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    .tw-ring-1.tw-ring-gray-200:hover {
        transform: translateY(-2px) !important;
    }

    .tw-font-mono.tw-font-semibold {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 576px) {
    .tw-p-4.sm\:tw-p-5 {
        padding: 12px !important;
    }

    .tw-font-bold.tw-text-base.lg\:tw-text-xl {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   CHART.JS CANVAS STYLING
   ============================================ */
canvas {
    border-radius: 8px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.tw-font-mono.tw-font-semibold:empty::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   SCROLLBAR FOR DASHBOARD TABLES
   ============================================ */
.tw-overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.tw-overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.tw-overflow-x-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tw-overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   CARD SECTIONS DIVIDERS
   ============================================ */
.tw-flow-root.tw-mt-5 {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: 16px !important;
}

/* ============================================
   BADGE / LABEL ENHANCEMENTS
   ============================================ */
.label {
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.label-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

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

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

.label-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.label-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
}

/* ============================================
   MODERN GRADIENT DASHBOARD STAT CARDS
   ============================================ */
.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    background: var(--card-gradient);
    box-shadow: var(--card-shadow);
    border: none;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative pattern overlay */
.dashboard-stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.5s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.dashboard-stat-card:hover::after {
    transform: translate(10%, 10%);
}

/* Icon Container - Glass morphism style */
.stat-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-icon-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    border-radius: inherit;
}

.dashboard-stat-card:hover .stat-icon-container {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.stat-icon-container svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Stat Value - White text on gradient */
.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Stat Label - Semi-transparent white */
.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-label .info-icon {
    color: rgba(255, 255, 255, 0.7);
    cursor: help;
    transition: color 0.2s ease;
    font-size: 12px;
}

.stat-label .info-icon:hover {
    color: white;
}

/* ============================================
   GRADIENT STAT CARD COLOR VARIANTS
   ============================================ */
/* Sales - Vibrant Blue */
.stat-card-sales {
    --card-gradient: linear-gradient(135deg, #0ea5e9 0%, #0369a1 50%, #075985 100%);
    --card-shadow: 0 10px 40px rgba(14, 165, 233, 0.3), 0 4px 12px rgba(14, 165, 233, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(14, 165, 233, 0.4), 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Net/Profit - Emerald Green */
.stat-card-net {
    --card-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --card-shadow: 0 10px 40px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(16, 185, 129, 0.4), 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Invoice Due - Warm Amber */
.stat-card-invoice-due {
    --card-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --card-shadow: 0 10px 40px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(245, 158, 11, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(245, 158, 11, 0.4), 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Returns - Coral Red */
.stat-card-return {
    --card-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
    --card-shadow: 0 10px 40px rgba(244, 63, 94, 0.3), 0 4px 12px rgba(244, 63, 94, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(244, 63, 94, 0.4), 0 8px 20px rgba(244, 63, 94, 0.3);
}

/* Purchase - Royal Indigo */
.stat-card-purchase {
    --card-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    --card-shadow: 0 10px 40px rgba(139, 92, 246, 0.3), 0 4px 12px rgba(139, 92, 246, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(139, 92, 246, 0.4), 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Purchase Due - Sunset Orange */
.stat-card-purchase-due {
    --card-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    --card-shadow: 0 10px 40px rgba(249, 115, 22, 0.3), 0 4px 12px rgba(249, 115, 22, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(249, 115, 22, 0.4), 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* Expense - Deep Rose */
.stat-card-expense {
    --card-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    --card-shadow: 0 10px 40px rgba(236, 72, 153, 0.3), 0 4px 12px rgba(236, 72, 153, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(236, 72, 153, 0.4), 0 8px 20px rgba(236, 72, 153, 0.3);
}

/* Gross Profit - Teal */
.stat-card-profit {
    --card-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    --card-shadow: 0 10px 40px rgba(20, 184, 166, 0.3), 0 4px 12px rgba(20, 184, 166, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(20, 184, 166, 0.4), 0 8px 20px rgba(20, 184, 166, 0.3);
}

/* Total Orders - Cyan */
.stat-card-orders {
    --card-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --card-shadow: 0 10px 40px rgba(6, 182, 212, 0.3), 0 4px 12px rgba(6, 182, 212, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(6, 182, 212, 0.4), 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Repair Revenue - Slate Blue */
.stat-card-repair-revenue {
    --card-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    --card-shadow: 0 10px 40px rgba(99, 102, 241, 0.3), 0 4px 12px rgba(99, 102, 241, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(99, 102, 241, 0.4), 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Repair Profit - Lime Green */
.stat-card-repair-profit {
    --card-gradient: linear-gradient(135deg, #84cc16 0%, #65a30d 50%, #4d7c0f 100%);
    --card-shadow: 0 10px 40px rgba(132, 204, 22, 0.3), 0 4px 12px rgba(132, 204, 22, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(132, 204, 22, 0.4), 0 8px 20px rgba(132, 204, 22, 0.3);
}

/* Job Sheets - Aqua/Cyan */
.stat-card-jobs {
    --card-gradient: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
    --card-shadow: 0 10px 40px rgba(6, 182, 212, 0.3), 0 4px 12px rgba(6, 182, 212, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(6, 182, 212, 0.4), 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Completed - Green */
.stat-card-completed {
    --card-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    --card-shadow: 0 10px 40px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(34, 197, 94, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(34, 197, 94, 0.4), 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Pending - Amber/Yellow */
.stat-card-pending {
    --card-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --card-shadow: 0 10px 40px rgba(251, 191, 36, 0.3), 0 4px 12px rgba(251, 191, 36, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(251, 191, 36, 0.4), 0 8px 20px rgba(251, 191, 36, 0.3);
}

/* Revenue - Red */
.stat-card-revenue {
    --card-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    --card-shadow: 0 10px 40px rgba(239, 68, 68, 0.3), 0 4px 12px rgba(239, 68, 68, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(239, 68, 68, 0.4), 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Invoices - Purple */
.stat-card-invoices {
    --card-gradient: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7e22ce 100%);
    --card-shadow: 0 10px 40px rgba(168, 85, 247, 0.3), 0 4px 12px rgba(168, 85, 247, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(168, 85, 247, 0.4), 0 8px 20px rgba(168, 85, 247, 0.3);
}

/* Time - Teal */
.stat-card-time {
    --card-gradient: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
    --card-shadow: 0 10px 40px rgba(45, 212, 191, 0.3), 0 4px 12px rgba(45, 212, 191, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(45, 212, 191, 0.4), 0 8px 20px rgba(45, 212, 191, 0.3);
}

/* Rate - Maroon/Rose */
.stat-card-rate {
    --card-gradient: linear-gradient(135deg, #be185d 0%, #9d174d 50%, #831843 100%);
    --card-shadow: 0 10px 40px rgba(190, 24, 93, 0.3), 0 4px 12px rgba(190, 24, 93, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(190, 24, 93, 0.4), 0 8px 20px rgba(190, 24, 93, 0.3);
}

/* Warranty - Orange */
.stat-card-warranty {
    --card-gradient: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    --card-shadow: 0 10px 40px rgba(251, 146, 60, 0.3), 0 4px 12px rgba(251, 146, 60, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(251, 146, 60, 0.4), 0 8px 20px rgba(251, 146, 60, 0.3);
}

/* Shipping Out - Gradient Blue/Purple */
.stat-card-shipping-out {
    --card-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #6366f1 100%);
    --card-shadow: 0 10px 40px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(59, 130, 246, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(59, 130, 246, 0.4), 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Shipping In - Gradient Purple/Violet */
.stat-card-shipping-in {
    --card-gradient: linear-gradient(135deg, #818cf8 0%, #7c3aed 50%, #6d28d9 100%);
    --card-shadow: 0 10px 40px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(124, 58, 237, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(124, 58, 237, 0.4), 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Technician Charges - Gradient Green */
.stat-card-technician {
    --card-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    --card-shadow: 0 10px 40px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(16, 185, 129, 0.4), 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Total Cost - Gradient Red/Orange */
.stat-card-cost {
    --card-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    --card-shadow: 0 10px 40px rgba(239, 68, 68, 0.3), 0 4px 12px rgba(239, 68, 68, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(239, 68, 68, 0.4), 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Info - Sky Blue */
.stat-card-info {
    --card-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    --card-shadow: 0 10px 40px rgba(14, 165, 233, 0.3), 0 4px 12px rgba(14, 165, 233, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(14, 165, 233, 0.4), 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Primary - Indigo */
.stat-card-primary {
    --card-gradient: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
    --card-shadow: 0 10px 40px rgba(99, 102, 241, 0.3), 0 4px 12px rgba(99, 102, 241, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(99, 102, 241, 0.4), 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Success - Emerald */
.stat-card-success {
    --card-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    --card-shadow: 0 10px 40px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(16, 185, 129, 0.4), 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Customers - Violet */
.stat-card-customers {
    --card-gradient: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    --card-shadow: 0 10px 40px rgba(139, 92, 246, 0.3), 0 4px 12px rgba(139, 92, 246, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(139, 92, 246, 0.4), 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Warning - Amber */
.stat-card-warning {
    --card-gradient: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    --card-shadow: 0 10px 40px rgba(251, 191, 36, 0.3), 0 4px 12px rgba(251, 191, 36, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(251, 191, 36, 0.4), 0 8px 20px rgba(251, 191, 36, 0.3);
}

/* Danger - Red */
.stat-card-danger {
    --card-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    --card-shadow: 0 10px 40px rgba(239, 68, 68, 0.3), 0 4px 12px rgba(239, 68, 68, 0.2);
    --card-shadow-hover: 0 20px 50px rgba(239, 68, 68, 0.4), 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* ============================================
   RESPONSIVE STAT CARDS
   ============================================ */
@media (max-width: 991px) {
    .dashboard-stat-card {
        border-radius: 16px;
    }

    .stat-icon-container {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .stat-icon-container svg {
        width: 26px;
        height: 26px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard-stat-card {
        border-radius: 14px;
    }

    .stat-icon-container {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .stat-icon-container svg {
        width: 22px;
        height: 22px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

