/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .panel {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    
    .panel-title {
        padding: 1rem 1rem 0;
        font-size: 1.125rem;
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .filters {
        gap: 0.5rem;
    }
    
    .filter-select,
    .filter-input {
        padding: 0.375rem;
        font-size: 0.75rem;
        flex: 1;
        min-width: 0;
    }
    
    .data-table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .data-table {
        font-size: 0.625rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.375rem 0.25rem;
    }
    
    /* Hide less important columns on mobile */
    .data-table th:nth-child(n+6),
    .data-table td:nth-child(n+6) {
        display: none;
    }
    
    .chart-section {
        margin-bottom: 1rem;
    }
    
    .chart-title {
        font-size: 0.875rem;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .filters,
    .loading {
        display: none !important;
    }
    
    .panel {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .main {
        padding: 0;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.25rem;
    }
}