.header { 
    background: linear-gradient(90deg, #04878d, #67b651);
    color: white; 
    padding: 1.5rem; 
    text-align: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in;
}
.header h1 { 
    margin: 0; 
    font-size: 2rem; 
    color:#fff;
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1.5rem; 
}
.search-bar { 
    display: flex; 
    gap: 1rem; 
    margin-bottom: 1.5rem; 
    flex-wrap: wrap; 
    align-items: center; 
}
.search-bar input, .search-bar select { 
    flex: 1; 
    padding: 0.75rem; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    font-size: 1rem; 
    min-width: 150px; 
    transition: border-color 0.3s ease; 
}
.search-bar input:focus, .search-bar select:focus { 
    border-color: #28a745; 
    outline: none; 
}
.filter-btn, .reset-btn { 
    background: #28a745; 
    color: white; 
    border: none; 
    padding: 0.75rem 1.5rem; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 1rem; 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.reset-btn { 
    background: #6c757d; 
}
.filter-btn:hover, .reset-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
}
.insights-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem; 
}
.insight-card { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    animation: slideUp 0.5s ease-out forwards; 
    opacity: 0; 
    transform: translateY(20px); 
}
.insight-card:nth-child(1) { animation-delay: 0.1s; }
.insight-card:nth-child(2) { animation-delay: 0.2s; }
.insight-card:nth-child(3) { animation-delay: 0.3s; }
.insight-card:nth-child(4) { animation-delay: 0.4s; }
.insight-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); 
}
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1rem; 
}
th, td { 
    padding: 0.75rem; 
    text-align: left; 
    border-bottom: 1px solid #e0e0e0; 
}
th { 
    background: #e9f7ef; 
    color: #333; 
    font-weight: bold; 
}
td { 
    color: #555; 
}
tr { 
    animation: fadeInRow 0.3s ease-in; 
}
.chart-container { 
    height: 250px; 
    margin-top: 1rem; 
    position: relative; 
}
canvas { 
    max-width: 100%; 
    height: 100%; 
}
.error-message { 
    color: #dc3545; 
    text-align: center; 
    margin: 1rem 0; 
    display: none; 
}
.loading-spinner { 
    display: none; 
    margin: 1rem auto; 
    width: 40px; 
    height: 40px; 
    border: 4px solid #28a745; 
    border-top: 4px solid transparent; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}
.drilldown-table { 
    display: none; 
    margin-top: 1rem; 
    animation: fadeIn 0.5s ease-in; 
}
.drilldown-table.active { 
    display: block; 
}
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes fadeInRow { 
    from { opacity: 0; transform: translateX(-10px); } 
    to { opacity: 1; transform: translateX(0); } 
}
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}
@media (prefers-reduced-motion: reduce) {
    .insight-card, .header, tr, .drilldown-table { animation: none; }
    .filter-btn:hover, .reset-btn:hover { transform: none; }
}
@media (max-width: 768px) { 
    .search-bar { 
        flex-direction: column; 
    }
    .insights-grid { 
        grid-template-columns: 1fr; 
    }
}