* {
    transition: all 0.2s ease;
}

body {
    font-family: 'Segoe UI', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 2rem;
    color: var(--text-color);
    line-height: 1.6;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--header-color);
}


.input_container section {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two equal columns */
    gap: 1.2rem 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 0 8px var(--shadow-color);
}

.input_container .repeat-section {
    grid-template-columns: repeat(3, 1fr); /* three equal columns */
}

.input_container label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.input_field {
    display: flex;
    flex-direction: column;
}

input {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    box-sizing: border-box;
    color: var(--text-color);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color), transparent 80%);
}

input::placeholder {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-color);
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

#calculate-button {
    width: 400px;
    margin-top: 1rem;
    padding: 0.7rem 1.2rem;
    color: var(--text-color);
    background-color: var(--shadow-color);
    border: 2px solid var(--calc-border);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#theme-toggle {
    position: absolute;
    width: 200px;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    background-color: var(--shadow-color);
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

@media (max-width: 700px) {
    #theme-toggle {
        width: auto;
        font-size: 1rem;
        padding: 0.7rem 0.8rem;
    }

}

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

#lat-info, #angle-info {
    text-align: center;
    padding-top: 1.5rem;
    background: var(--input-bg);
    border-radius: 4px;
    font-family: monospace;
}

#thetaCutPlot, #lattice-plot, #bz-plot{
    width: 100%; 
    height: 500px;
    border: 2px solid var(--input-border);
    border-radius: 6px;
    margin: 2rem 0;
}
