/* Dashboard Specific Styles */

.dashboard-filters {
    animation: fadeIn 0.5s ease;
}

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

/* Stats Grid Animation */
.stats-grid .stat-card {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Charts Grid Animation */
.charts-grid .chart-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.charts-grid .chart-card:nth-child(1) { animation-delay: 0.5s; }
.charts-grid .chart-card:nth-child(2) { animation-delay: 0.6s; }
.charts-grid .chart-card:nth-child(3) { animation-delay: 0.7s; }
.charts-grid .chart-card:nth-child(4) { animation-delay: 0.8s; }

/* Stat Card Hover Effect */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Chart Loading State */
.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.9);
}

/* Quick Stats Numbers Animation */
.stat-value {
    transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
    color: var(--primary-dark);
}

/* Filter Animation */
.filter-select:focus {
    transform: scale(1.02);
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-filters {
        padding: 15px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-icon {
        font-size: 30px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}