body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Very light grey background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 900px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid #dee2e6; /* Subtle border around the container */
}

h1 {
    text-align: center;
    color: #007bff; /* Primary blue */
    margin-bottom: 10px;
}

.demo-description {
    text-align: center;
    color: #6c757d; /* Secondary grey */
    margin-bottom: 25px;
    font-size: 0.9rem;
}

h2 {
    color: #28a745; /* Success green for section titles */
    margin-top: 25px; /* More top margin for separation */
    border-bottom: 2px solid #28a745; /* Green bottom border */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

ol {
    list-style: none; /* Remove default numbering */
    padding: 0;
}

ol > li {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef; /* Light grey border after each list item */
}

ol > li:last-child {
    border-bottom: none; /* Remove border after the last item */
}

ol > li h3 {
    color: #495057; /* Dark grey for sub-headings */
    margin-top: 0; /* Reset top margin for sub-headings in list items */
    margin-bottom: 10px;
}

label {
    display: block;
    margin: 15px 0 8px;
    color: #495057;
    font-weight: bold;
}

input[type="number"],
input[type="range"] {
    width: calc(100% - 16px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="number"]:focus,
input[type="range"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

button {
    background-color: #007bff; /* Primary blue button */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Add some space above the button */
}

button:hover {
    background-color: #0056b3; /* Darker shade of blue on hover */
}

.hidden {
    display: none;
}

#analysis-results {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6; /* Subtle border around results */
}

#analysis-results h3 {
    color: #28a745; /* Success green for result sub-headings */
    border-bottom: 1px solid #28a745;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

#charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    #charts {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #e9ecef; /* Light border around charts */
}