/* --- UNIFIED STYLESHEET (style.css) --- */

/* Base, Header & Tab Styling (Unchanged) */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 20px;
    -webkit-user-select: none;
    user-select: none;
}
.tasks-heading { text-align: center; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: #444; }
.v-tabs ul { display: flex; justify-content: left; list-style: none; padding: 0; margin: 0; border-bottom: 1px solid #ddd; }
.v-tabs li { display: inline-block; margin: 0; cursor: pointer; }
.v-tabs a { display: inline-block; padding: 0.75rem 1.25rem; text-decoration: none; color: #333; font-weight: 500; }
.v-tabs li.is-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: 1.5rem 0; border-radius: 4px; }
.subheading-box .title { color: #3c763d; font-size: 1.25rem; margin: 0; font-weight: 600; }

/* Main Content Panels & Observation Box (Unchanged) */
.white-boxed-panel { background-color: #fff; border: 1px solid #dbdbdb; border-radius: 6px; padding: 2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); height: 100%; }
.v-datalist-container.components-list { border: 2px solid #8dc63f; border-radius: 8px; padding: 1rem; background-color: #fafafa; height: 100%; }
.v-datalist-title { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid #eee; text-align: center; font-weight: 600; color: #363636; }

/* --- MODIFIED STYLES FOR CLT DEMO --- */

/* Top Controls */
.election-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.control-item { display: flex; flex-direction: column; align-items: center; }
.slider-container { flex: 1; min-width: 200px; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Slider */
input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; background: #e9e9e9;
    border-radius: 5px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; background: #4481c2;
    border-radius: 50%; border: none; box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Buttons */
.option-btn {
    padding: 10px 20px; background-color: #4CAF50; color: white;
    border: none; border-radius: 5px; cursor: pointer;
    font-size: 16px; transition: background-color 0.3s ease;
}
.option-btn:hover { background-color: #45a049; }
.reset-btn { background-color: #f44336; }
.reset-btn:hover { background-color: #d32f2f; }

/* Chart Layout */
.election-main-content { display: flex; gap: 20px; flex-wrap: wrap; }
.chart-column-small { flex: 1; display: flex; flex-direction: column; gap: 15px; min-width: 250px; }
.chart-column-large { flex: 2; min-width: 300px; }

.chart-wrapper { position: relative; border: 1px solid #eee; border-radius: 6px; padding: 10px; }
.chart-wrapper.small { height: 220px; }
.chart-wrapper.large { height: 455px; }
canvas { width: 100%; height: 100%; }

/* Stats & Observations Panel */
#stats-display p { margin-bottom: 0.5rem; font-size: 0.95em; }
#stats-display hr { margin: 0.75rem 0; }
#observations {
    background-color: #f0f7ff; padding: 10px; border-radius: 5px;
    border: 1px solid #d4e8ff; font-style: italic; color: #3a6a9d;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .columns { flex-direction: column; align-items: center; }
    .column { width: 90% !important; margin-bottom: 1rem; }
}
@media (max-width: 768px) {
    .election-main-content { flex-direction: column; }
    .chart-wrapper.large, .chart-wrapper.small { height: 300px; }
}
/* --- UNIFIED STYLESHEET (style.css) --- */

/* Base, Header & Tab Styling (Unchanged) */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 20px;
    -webkit-user-select: none;
    user-select: none;
}
.tasks-heading { text-align: center; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: #444; }
.v-tabs ul { display: flex; justify-content: left; list-style: none; padding: 0; margin: 0; border-bottom: 1px solid #ddd; }
.v-tabs li { display: inline-block; margin: 0; cursor: pointer; }
.v-tabs a { display: inline-block; padding: 0.75rem 1.25rem; text-decoration: none; color: #333; font-weight: 500; }
.v-tabs li.is-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: 1.5rem 0; border-radius: 4px; }
.subheading-box .title { color: #3c763d; font-size: 1.25rem; margin: 0; font-weight: 600; }

/* Main Content Panels & Observation Box (Unchanged) */
.white-boxed-panel { background-color: #fff; border: 1px solid #dbdbdb; border-radius: 6px; padding: 2rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); height: 100%; }
.v-datalist-container.components-list { border: 2px solid #8dc63f; border-radius: 8px; padding: 1rem; background-color: #fafafa; height: 100%; }
.v-datalist-title { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid #eee; text-align: center; font-weight: 600; color: #363636; }

/* --- MODIFIED STYLES FOR CLT DEMO --- */

/* Top Controls */
.election-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.control-item { display: flex; flex-direction: column; align-items: center; }
.slider-container { flex: 1; min-width: 200px; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Slider */
input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; background: #e9e9e9;
    border-radius: 5px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; background: #4481c2;
    border-radius: 50%; border: none; box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Buttons */
.option-btn {
    padding: 10px 20px; background-color: #4CAF50; color: white;
    border: none; border-radius: 5px; cursor: pointer;
    font-size: 16px; transition: background-color 0.3s ease;
}
.option-btn:hover { background-color: #45a049; }
.reset-btn { background-color: #f44336; }
.reset-btn:hover { background-color: #d32f2f; }

/* Chart Layout */
.election-main-content { display: flex; gap: 20px; flex-wrap: wrap; }
.chart-column-small { flex: 1; display: flex; flex-direction: column; gap: 15px; min-width: 250px; }
.chart-column-large { flex: 2; min-width: 300px; }

.chart-wrapper { position: relative; border: 1px solid #eee; border-radius: 6px; padding: 10px; }
.chart-wrapper.small { height: 220px; }
.chart-wrapper.large { height: 455px; }
canvas { width: 100%; height: 100%; }

/* Stats & Observations Panel */
#stats-display p { margin-bottom: 0.5rem; font-size: 0.95em; }
#stats-display hr { margin: 0.75rem 0; }
.observation-box {
    margin-top: 15px;
    background-color: #f0f7ff; padding: 10px; border-radius: 5px;
    border: 1px solid #d4e8ff; color: #3a6a9d; font-size: 0.9em;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .columns { flex-direction: column; align-items: center; }
    .column { width: 90% !important; margin-bottom: 1rem; }
}
@media (max-width: 768px) {
    .election-main-content { flex-direction: column; }
    .chart-wrapper.large, .chart-wrapper.small { height: 300px; }
}