@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    text-align: center;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 20px;
    background: linear-gradient(135deg, #0a121f, #04050d);
    color: white;

    scrollbar-color: rgb(18, 29, 78) rgb(0, 0, 0);
    scrollbar-width: thin;
}

.controls {
    width: 30%;
    padding: 10px;
    border-radius: 12px;
    background: rgba(10, 19, 31, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

h1, h3 {
    margin-bottom: 10px;
}

input, button {
    margin: 5px;
    padding: 5px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

input {
    width: 100px;
    background: rgba(50, 58, 90, 0.3);
    color: white;
    outline: none;
    text-align: center;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

button {
    background: rgba(50, 62, 150, 0.5);
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

button:hover {
    background: rgba(70, 129, 180, 0.7);
}

#messageArea {
    margin-top: 10px;
    color: white;
}

canvas {
    border: 2px solid rgb(156, 156, 156);
    background: linear-gradient(135deg, #06060f, #0d0d26);
    width: 65%;
    height: 97vh;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
}

/* Стилі для блоків у лівій панелі */
#controlPointsList, #curvePoints, #matrixBlock {
    max-height: 150px;
    overflow: auto;
    border: 1px solid rgb(77, 77, 77);
    background-color: #101031;
    margin-top: 5px;
    padding: 5px;
    border-radius: 8px;
}

.matrix-section {
    margin-top: 20px;
}

.t-params {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-inputs {
    display: flex;
}
.t-input {
    flex-direction: column;
    align-items: center;
}
