* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1e1e2e;
    color: #cdd6f4;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header h1 {
    font-size: 2rem;
    color: #89b4fa;
    margin-bottom: 5px;
}

header p {
    color: #a6adc8;
    margin-bottom: 10px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #89b4fa;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.2s;
}

.github-link:hover {
    color: #74c7ec;
    text-decoration: underline;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    background-color: #181825;
    color: #a6e3a1;
    border: 1px solid #313244;
    border-radius: 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #89b4fa;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a6adc8;
    font-size: 14px;
    background-color: #181825;
    padding: 10px 15px;
    border: 1px solid #313244;
    border-radius: 8px;
}

.controls input[type="range"] {
    flex-grow: 1;
    max-width: 300px;
    accent-color: #89b4fa;
}

#zScaleValue {
    font-weight: bold;
    color: #89b4fa;
    min-width: 40px;
}

button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #89b4fa;
    color: #11111b;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #74c7ec;
}

.visualization-section {
    width: 100%;
    min-height: 600px;
    background-color: #181825;
    border: 1px solid #313244;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plotContainer {
    width: 100%;
    height: 100%;
    min-height: 600px;
}