/* Additional custom styles for the Cli-Res Dashboard */

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Chart images */
#chart-area img,
#fourier-result img,
#comfort-chart img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

/* Form range display */
input[type="range"] + small {
    display: block;
    text-align: center;
}

/* Data toolbar — kept as-is, uses <details> native open/close */

/* Section card transitions */
section .bg-white {
    transition: box-shadow 0.2s ease;
}
section .bg-white:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Table styling for data overview */
#chart-area table,
details .table-auto {
    font-size: 0.75rem;
    border-collapse: collapse;
}
#chart-area table th,
details .table-auto th {
    background: #f1f5f9;
    padding: 0.375rem 0.5rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}
#chart-area table td,
details .table-auto td {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
    #analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar for selects */
select[multiple]::-webkit-scrollbar {
    width: 6px;
}
select[multiple]::-webkit-scrollbar-track {
    background: #f1f5f9;
}
select[multiple]::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
