body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 20px;
    color: #333;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.controls-panel {
    width: 300px;
}

.slider-group {
    margin-bottom: 15px;
}

.slider-group label {
    width: 30px;
    font-weight: bold;
    font-style: italic;
}

.slider-group input[type="range"] {
    flex-grow: 1;
    margin: 0 15px;
}

.slider-group span {
    width: 40px;
    text-align: right;
    font-family: monospace;
    background: #eee;
    padding: 2px 5px;
    border-radius: 3px;
}

.reset-btn {
    margin-top: 10px;
    padding: 10px;
    background-color: #4C72B0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background-color: #3a5889;
}

#eigenplot {
    margin-top: 20px;
    width: 100%;
    height: 250px;
    border: 1px solid #ddd;
    justify-content: center;
    background: #fafafa;
    pointer-events: none;
}

#equation-label {
    margin-bottom: 20px;
    height: 50px;
    justify-content: center;
    width: 100%;
}

canvas {
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.plot-title {
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    margin-top: -10px;
}

.error-text {
    color: #C44E52;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
}
