body {
    font-family: Roboto, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
}

h2 {
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

input,
select {
    padding: 0.4rem;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 1rem;
    background: #fff9c4;
}

input:focus,
select:focus {
    outline: none;
    border-bottom: 2px solid #1976d2;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    display: inline-block;
}

.latex {
    background-color: d7ddf2;
    margin-top: 2rem;
    font-size: clamp(0.5rem, 2vw, 1rem);
}

.latex .mjx-math {
    transform: scale(clamp(0.5, 2vw, 1));
    transform-origin: left;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.icon {
    font-size: 2rem;
    color: #1976d2;
}

.underline {
    text-decoration: underline;
}

.actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}


.info-box {
    display: none;
    background: #e3f2fd;
    color: #0d47a1;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 5px solid #1976d2;
    border-radius: 4px;
}

.circle-button,
.preset-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1976d2;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.circle-button:hover,
.preset-link:hover {
    background: #1565c0;
}

.preset-link {
    font-size: 0.9rem;
}
