/* ----------------------------------------
   Base & General Styling (Consistent with other labs)
   ---------------------------------------- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 20px;
}
.tasks-heading {
    text-align: center; font-size: 1.25rem; font-weight: 600;
    margin-bottom: 0.5rem; color: #444;
}
.v-tabs ul {
    display: flex; overflow-x: auto; white-space: nowrap; list-style: none;
    padding: 0; margin: 0 3%; border-bottom: 1px solid #ddd;
}
.v-tabs li { display: inline-block; margin: 0; }
.v-tabs a {
    display: inline-block; padding: 0.75rem 1.25rem;
    text-decoration: none; color: #333; font-weight: 500;
}
.v-tabs li.active > a { color: #3273dc; border-bottom: 3px solid #3273dc; }
.v-tabs a:hover { background-color: #f0f0f0; border-radius: 4px; }
.subheading-box {
    background-color: #f7fdf7; border-left: 4px solid #3c763d;
    padding: 0.75rem 1rem; margin: 1rem 3% 1.5rem 3%; border-radius: 4px;
}
.subheading-box .title { color: #3c763d; font-size: 1.25rem; margin: 0; font-weight: 600; }
.v-datalist-container.components-list {
    border: 2px solid #8dc63f; border-radius: 8px;
    padding: 1rem 1rem 10px 1rem; background-color: #fafafa;
}
.v-datalist-title, .v-datalist-subtitle {
    margin-bottom: 0.75rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.white-boxed-panel {
    background-color: #fff; border: 1px solid #dbdbdb; border-radius: 6px;
    padding: 1.25rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.controls-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----------------------------------------
   NEW & UPDATED STYLES FOR THIS EXPERIMENT
   ---------------------------------------- */

/* Main Plot Wrapper - WIDER layout */
/* Make main plot much wider and taller */
#main-plot-wrapper {
    position: relative;
    width: 80vw;
    max-width: 900px;
    height: 270px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 2px 12px rgba(50,115,220,0.07);
    background: #fff;
    border-radius: 8px;
}

@media (max-width: 600px) {
    #main-plot-wrapper {
        width: 98vw;
        max-width: 100vw;
        height: 180px;
        margin: 0 auto 1rem auto;
    }
    .analysis-grid {
        flex-direction: column;
        gap: 1.2rem;
        margin-bottom: 1rem;
    }
    .analysis-box {
        min-width: 0;
        height: 120px;
        padding: 0.5rem;
    }
    #mean-display p {
        font-size: 1.5rem;
    }
}

#main-plot-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Draggable Inspector Window */
#inspector-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px; /* Width of the analysis window */
    height: 100%;
    background-color: rgba(50, 115, 220, 0.3);
    border-left: 2px solid #3273dc;
    border-right: 2px solid #3273dc;
    cursor: ew-resize;
    z-index: 10;
}

/* Grid for Analysis Plots - more responsive */
/* Place mean and ACF horizontally next to each other */
.analysis-grid {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 2rem;
}

.analysis-box {
    height: 220px;
    min-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.analysis-box canvas {
    max-width: 100%;
    max-height: 100%;
}

#mean-display {
    background-color: #f5f5f5;
    border-radius: 6px;
}

#mean-display p {
    font-size: 2.5rem;
    font-weight: 600;
    color: #363636;
    font-family: 'Courier New', Courier, monospace;
}

/* Submission Panel */
.submission-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
#submission-feedback {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    display: none; /* Hidden by default */
}
#submission-feedback.correct {
    background-color: #f6fff9;
    border: 2px solid #23d160;
    color: #0e6b2e;
    display: block;
}
#submission-feedback.incorrect {
    background-color: #fff5f7;
    border: 2px solid #ff3860;
    color: #cc0f35;
    display: block;
}


/* Observations Panel */
#observations .initial-text {
    color: #777;
    font-style: italic;
    text-align: center;
}
#observations .observation-content {
    font-size: 1.1em;
    padding: 1rem;
    background-color: #f6f9ff;
    border-left: 4px solid #3273dc;
    border-radius: 4px;
}