body {
    margin: 0;
    overflow: hidden;
    background-color: #f8fafc;
    /* Daha modern ve yumuşak bir arka plan */
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Modern yazı tipi */
    color: #334155;
}

.container {
    display: flex;
    align-items: flex-start;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    /* Derinlik hissi */
}

.controls {
    display: flex;
    flex-direction: column;
    margin-right: 24px;
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    min-width: 200px;
}

.control-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #475569;
}

/* Modern Kaydırıcı (Range Input) Tasarımı */
.control-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Modern Buton Tasarımı */
.control-group button {
    margin-top: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.control-group button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3);
}

.control-group button:active {
    transform: translateY(1px);
}

/* Silgi veya Araç Aktif Olduğundaki Canlı Renk */
.control-group button.active {
    background-color: #10b981;
    /* Canlı yeşil */
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.control-group button.active:hover {
    background-color: #059669;
}

/* Çizim Alanı */
#drawingCanvas {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    position: relative;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

/* Sürüklenebilir Ögeler */
#draggableImage,
#draggableRuler,
#draggableGonye {
    position: absolute;
    cursor: grab;
    user-drag: none;
    -webkit-user-drag: none;
    transition: box-shadow 0.2s ease;
}

#draggableImage:active,
#draggableRuler:active,
#draggableGonye:active {
    cursor: grabbing;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.15));
    /* Taşırken havada süzülme efekti */
}

#draggableImage {
    width: 188.5px;
    height: 105.5px;
    transform-origin: 50% 91%;
    left: 50px;
    top: 440px;
}

#draggableRuler {
    width: 430px;
    height: 57px;
    transform-origin: center center;
    left: 50px;
    top: 550px;
}

#draggableGonye {
    width: 150px;
    height: 250px;
    transform-origin: 0% 100%;
    left: 250px;
    top: 290px;
}