/**
 * Charts Base CSS - core containers, chart styling, and basic layout
 */

.weernormaal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preserve theme elements */
header, 
.site-header,
#header,
nav,
.navigation,
.nav-menu,
footer,
.site-footer,
#footer {
    background: inherit !important;
    color: inherit !important;
    display: inherit !important;
    visibility: inherit !important;
    position: inherit !important;
}

/* Page header */
.weernormaal-container .weernormaal-page-header {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0;
    background: none;
    color: #333;
    border-radius: 0;
}

.weernormaal-container .weernormaal-page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.weernormaal-container .weernormaal-description {
    display: none;
}

/* Chart containers */
.weernormaal-container .chart-container {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    position: relative;
}

.weernormaal-container .chart-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.weernormaal-container .chart-header h3 {
    display: none;
}

.weernormaal-container .chart-wrapper {
    height: 75vh;
    width: 100%;
    position: relative;
}

/* Loading and error states */
.weernormaal-container .chart-loading, 
.weernormaal-container .chart-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.weernormaal-container .chart-loading {
    font-size: 1.1rem;
    color: #636e72;
}

.weernormaal-container .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weernormaal-container .chart-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    color: #856404;
}

/* Anomaly sections */
.weernormaal-container .anomalie-section {
    margin: 2rem 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.weernormaal-container .anomalie-section:first-of-type {
    border-top: none;
    padding-top: 0;
}
