@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #eef1f5;
    color: #34495e;
}

header {
    background: linear-gradient(90deg, #16a085, #1abc9c);
    color: white;
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.subtitle {
    margin: 5px 0 0;
    font-weight: 400;
    opacity: 0.9;
}

.container {
    max-width: 1200px; /* Increased width for side-by-side charts */
    margin: 30px auto;
    padding: 15px;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #dce1e7;
}

h2, h3 {
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 10px;
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #16a085;
    outline: none;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px dashed #bdc3c7;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.inline-inputs {
    display: flex;
    gap: 20px;
    width: 100%;
}
.inline-inputs > div {
    flex: 1;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

button {
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}
button:hover {
    transform: translateY(-2px);
}
button.primary { background-color: #2980b9; }
button.primary:hover { background-color: #3498db; }
button.secondary { background-color: #7f8c8d; }
button.secondary:hover { background-color: #95a5a6; }
button.export { background-color: #27ae60; }
button.export:hover { background-color: #2ecc71; }


.method-options {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.summary-box {
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #1abc9c;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
}
.summary-box h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 5px;
}
#outliers {
    font-weight: bold;
    color: #c0392b;
    font-size: 1.1em;
}
#distribution-result {
    font-style: italic;
    color: #2980b9;
}

/* NEW: Style for the row containing charts */
.chart-row {
    display: flex;
    flex-wrap: wrap; /* Allows charts to stack on small screens */
    gap: 20px;
    align-items: stretch;
}

/* UPDATED: Chart container styles */
.plotly-chart-container {
    flex: 1; /* Each chart takes up equal space */
    min-width: 350px; /* Prevents charts from becoming too narrow */
    min-height: 450px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
/* Ensure the plotly div itself grows to fill the container */
.plotly-chart-container > div {
    flex-grow: 1;
}


.export-buttons {
    padding-top: 20px;
    border-top: 1px solid #dce1e7;
    text-align: right;
}

.error {
    color: #c0392b;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}