/* ============================================
   ASSETS/CSS/DASHBOARD.CSS - PREMIUM VERSION
   Color Theme: Green + Blue + Red (Light)
   Effects: Glassmorphism, 3D, Animations
   Responsive: Mobile, Tablet, Desktop
   FIXED: Charts now display properly with correct height
   ============================================ */

/* ---------- IMPORTS & RESET ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-blue: #2563eb;
    --primary-blue-light: #dbeafe;
    --primary-green: #16a34a;
    --primary-green-light: #dcfce7;
    --primary-red: #dc2626;
    --primary-red-light: #fee2e2;
    
    /* Accent Colors */
    --accent-purple: #7c3aed;
    --accent-purple-light: #ede9fe;
    --accent-orange: #f59e0b;
    --accent-pink: #ec4899;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
    --shadow-3d: 6px 6px 12px rgba(0, 0, 0, 0.08), -6px -6px 12px rgba(255, 255, 255, 0.8);
    --shadow-3d-hover: 8px 8px 16px rgba(0, 0, 0, 0.12), -8px -8px 16px rgba(255, 255, 255, 0.9);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: linear-gradient(135deg, #f0f4fb 0%, #e8edf5 50%, #f5f7fa 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ---------- WRAPPER & LAYOUT ---------- */
.wrapper {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* ---------- SIDEBAR (Glassmorphism + 3D) ---------- */
.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
    padding: 2rem 1.2rem;
    transition: all var(--transition-medium);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: var(--radius-full);
}

.sidebar .brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeInDown 0.6s ease;
}

.sidebar .brand i {
    -webkit-text-fill-color: var(--primary-blue);
    font-size: 2rem;
    animation: pulseGlow 2s infinite;
}

.sidebar .nav-link {
    color: #334155;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.3rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-green-light));
    opacity: 0;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    opacity: 1;
}

.sidebar .nav-link i {
    width: 24px;
    color: #64748b;
    z-index: 1;
    transition: all var(--transition-fast);
}

.sidebar .nav-link span {
    z-index: 1;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    transform: translateX(6px);
    color: var(--primary-blue);
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: var(--primary-blue);
    transform: scale(1.1) rotate(-5deg);
}

.sidebar .nav-link .badge-notification {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    z-index: 1;
    animation: pulseBadge 2s infinite;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    flex: 1;
    padding: 1.8rem 2.2rem 2rem;
    background: transparent;
    animation: fadeIn 0.5s ease;
}

/* ---------- TOP BAR (Glassmorphism) ---------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
    margin-bottom: 2rem;
    transition: all var(--transition-medium);
}

.topbar:hover {
    box-shadow: var(--shadow-3d-hover);
    transform: translateY(-2px);
}

.topbar .page-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0b1a33;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topbar .page-title i {
    color: var(--primary-blue);
    animation: rotateIcon 8s linear infinite;
}

.topbar .user-section {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.topbar .user-name {
    font-weight: 500;
    color: #1e293b;
    transition: color var(--transition-fast);
}

.topbar .user-name:hover {
    color: var(--primary-blue);
}

.avatar-circle {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
}

.avatar-circle::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: var(--radius-full);
    animation: pulseDot 2s infinite;
}

.avatar-circle:hover {
    transform: scale(1.08) rotate(-8deg);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ---------- STAT CARDS (3D + Glassmorphism) ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.2rem;
    box-shadow: var(--shadow-3d);
    transition: all var(--transition-medium);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-3d-hover), 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
}

.stat-card .stat-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.stat-card .icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all var(--transition-medium);
}

.stat-card:hover .icon {
    transform: scale(1.1) rotate(-8deg);
}

.stat-card .icon.blue {
    background: linear-gradient(135deg, var(--primary-blue-light), #bfdbfe);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.stat-card .icon.green {
    background: linear-gradient(135deg, var(--primary-green-light), #bbf7d0);
    color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.stat-card .icon.red {
    background: linear-gradient(135deg, var(--primary-red-light), #fecaca);
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.stat-card .icon.purple {
    background: linear-gradient(135deg, var(--accent-purple-light), #ddd6fe);
    color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.stat-card .stat-info {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-weight: 800;
    font-size: 1rem;
    color: #0b1a33;
    line-height: 1.2;
    background: linear-gradient(135deg, #0b1a33, #1e293b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-top: 0.3rem;
}

.stat-card .stat-change.positive {
    color: var(--primary-green);
    background: var(--primary-green-light);
}

.stat-card .stat-change.negative {
    color: var(--primary-red);
    background: var(--primary-red-light);
}

/* ---------- CHARTS (Fixed Height & Spacing) ---------- */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3d-hover);
}

.chart-card .chart-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0b1a33;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.chart-card .chart-title i {
    color: var(--primary-blue);
}

/* IMPORTANT: Chart container with fixed height */
.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
    min-height: 280px;
    flex-shrink: 0;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ---------- TABLE WRAPPER (Glassmorphism) ---------- */
.table-wrap {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
    transition: all var(--transition-medium);
    margin-top: 0;
}

.table-wrap:hover {
    box-shadow: var(--shadow-3d-hover);
}

.table-wrap .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-wrap .table-header h5 {
    font-weight: 700;
    color: #0b1a33;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.table-wrap .table-header h5 i {
    color: var(--primary-blue);
}

/* ---------- FILTER BAR (Glassmorphism) ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.filter-bar input,
.filter-bar select {
    border-radius: var(--radius-full);
    padding: 0.5rem 1.2rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
}

.filter-bar .btn-action {
    border-radius: var(--radius-full);
    padding: 0.4rem 1.4rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-bar .btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ---------- TABLE STYLES ---------- */
.table-responsive {
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.8rem 0.5rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.8rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ---------- BADGE CATEGORIES ---------- */
.badge-cat {
    background: linear-gradient(135deg, var(--primary-blue-light), #bfdbfe);
    color: var(--primary-blue);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.badge-cat:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ---------- PAGINATION ---------- */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 3px;
    color: #1e293b;
    border: none;
    background: transparent;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    }
    50% {
        text-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    }
}

@keyframes pulseBadge {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ---------- RESPONSIVE DESIGN ---------- */

/* Tablet & Small Laptops */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        padding: 1.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-value {
        font-size: 1.6rem;
    }
    
    .chart-container {
        height: 250px;
        min-height: 250px;
    }
}

/* Mobile Landscape & Tablets */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    .sidebar .brand {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .sidebar .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .topbar {
        padding: 0.6rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .topbar .page-title {
        font-size: 1.1rem;
    }
    
    .topbar .user-name {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem 0.8rem;
    }
    
    .stat-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-card .stat-change {
        font-size: 0.65rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
    
    .chart-container {
        height: 220px;
        min-height: 220px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
    }
    
    .filter-bar input,
    .filter-bar select {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .filter-bar .ms-auto {
        margin-left: 0 !important;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .table-wrap {
        padding: 1rem;
    }
    
    .table-wrap .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .table-wrap .table-header .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.3rem;
        white-space: nowrap;
    }
    
    .badge-cat {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .pagination .page-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .avatar-circle::after {
        width: 10px;
        height: 10px;
        top: -2px;
        right: -2px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem 0.6rem;
    }
    
    .stat-card .icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.6rem;
    }
    
    .topbar {
        padding: 0.5rem 0.8rem;
    }
    
    .topbar .page-title {
        font-size: 0.95rem;
    }
    
    .topbar .page-title i {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 0.8rem;
    }
    
    .filter-bar input,
    .filter-bar select {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .filter-bar .btn-action {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.3rem 0.2rem;
    }
    
    .badge-cat {
        font-size: 0.55rem;
        padding: 0.15rem 0.5rem;
    }
    
    .chart-container {
        height: 180px;
        min-height: 180px;
    }
    
    .chart-card {
        padding: 0.8rem;
    }
}

/* ---------- SCROLLBAR STYLING ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

/* ---------- UTILITY CLASSES ---------- */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
}

.text-gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.hover-glow {
    transition: all var(--transition-medium);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.border-3d {
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.04);
}

.border-3d:hover {
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

/* ---------- CHART FIX - Ensure proper rendering ---------- */
.chart-card .chart-container {
    position: relative;
    width: 100%;
    height: 280px;
    min-height: 280px;
}

.chart-card .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

/* Force chart to respect container */
.chart-card canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure charts don't overflow */
.chart-card {
    overflow: hidden;
}

.chart-card .chart-container {
    overflow: hidden;
}

/* ---------- ADDITIONAL SPACING FIXES ---------- */
.row.g-4 {
    --bs-gutter-y: 1.5rem;
    --bs-gutter-x: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* Ensure proper vertical spacing between sections */
.main-content > * + * {
    margin-top: 1.5rem;
}

.main-content > .topbar + * {
    margin-top: 0;
}

.main-content > .stats-grid + * {
    margin-top: 1.5rem;
}

.main-content > .charts-grid + * {
    margin-top: 1.5rem;
}