/*
============================================================================
Copyright (c) 2024 HJJB, LLC
All Rights Reserved

This software is the proprietary information of HJJB, LLC.
Unauthorized use, reproduction, or distribution is strictly prohibited.

For licensing inquiries, please contact:
Email: licensing@thecoatlessprofessor.com
============================================================================
*/

:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --secondary-color: #95a5a6;
    --secondary-hover: #7f8c8d;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --background: #ecf0f1;
    --container-bg: #ffffff;
    --text-color: #2c3e50;
    --border-color: #bdc3c7;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    background: var(--container-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

header p {
    margin: 0;
    color: var(--secondary-color);
}

.section {
    margin-bottom: 25px;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.3em;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.primary-button, .secondary-button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-hover);
}

.secondary-button {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-button:hover {
    background-color: var(--secondary-hover);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.stat-value {
    font-size: 1.5em;
    color: var(--text-color);
    font-weight: bold;
}

.box-plot {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.box-plot-container {
    position: relative;
    height: 100px;
    margin: 30px 0;
}

.box-plot-line {
    position: absolute;
    top: 50%;
    height: 2px;
    background-color: var(--text-color);
}

.box-plot-box {
    position: absolute;
    top: 25%;
    height: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--text-color);
    opacity: 0.7;
}

.box-plot-median {
    position: absolute;
    top: 20%;
    height: 60%;
    width: 2px;
    background-color: var(--error-color);
}

.box-plot-whisker {
    position: absolute;
    top: 45%;
    height: 10%;
    width: 2px;
    background-color: var(--text-color);
}

.box-plot-outlier {
    position: absolute;
    top: 45%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--error-color);
    transform: translate(-50%, -50%);
}

.box-plot-label {
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: var(--text-color);
    margin-top: 5px;
}

.outlier-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.outlier-info h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

.outlier-list {
    margin: 10px 0;
}

.outlier-value {
    display: inline-block;
    background-color: var(--error-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 3px;
    font-size: 0.9em;
}

.help-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

details {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
    user-select: none;
}

summary:hover {
    color: var(--primary-color);
}

details pre {
    margin: 10px 0;
    background-color: #f8f9fa;
    color: var(--text-color);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

details ul,
details ol {
    margin: 10px 0;
    padding-left: 20px;
}

details li {
    margin-bottom: 5px;
}
