body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* YENİ: Sol ve Sağ panelleri yan yana getiren ana kapsayıcı */
.main-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

#container {
    position: relative;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background-color: #fafafa;
}

/* YENİ: Sol taraftaki kontrol paneli düzeni */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 280px;
}

.point {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

#a {
    background-color: red;
    cursor: move;
    z-index: 10;
}

#b {
    background-color: blue;
}

.trail {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: blue;
    opacity: 0.5;
    pointer-events: none;
}

.line {
    position: absolute;
    background-color: black;
    transform-origin: 0 0;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-group label {
    font-size: 14px;
    font-weight: 600;
}

.slider-group input {
    width: 100%;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Butonların sol panele tam oturması için genişlik ayarı */
.controls .buttondar {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Ekran küçüldüğünde alt alta gelmesi için responsive ayarı */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .left-panel {
        width: 100%;
    }
}