/* --- aciolcer.css (YENİ DOSYA) --- */

/* 1. Ana Konteyner (Yarım Daire) */
.aciolcer-container {
    position: fixed;
    /* 2. Madde: Yarım daire (300px genişlik, 150px yükseklik) */
    width: var(--width-px, 300px);
    height: var(--radius-px, 150px); 
    
    /* Başlangıç konumu */
    top: 50%;
    left: 50%;
    
    /* 1. Madde: Cetvelle aynı stil */
    border: 2px solid #00ffff;
    
    box-shadow: 0 0 15px #00ffff;
    
    /* Yarım daire şekli */
    border-radius: var(--radius-px, 150px) var(--radius-px, 150px) 0 0;
    
    z-index: 5; /* Panel (10) altında, Kanvas (0) üstünde */
    display: flex;
    transform-origin: center 100%; /* DÖNME MERKEZİ: Merkez-Alt */
}

/* 3. Madde: Sürükleme için gövde */
.aciolcer-body {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
    background: rgba(0, 100, 200, 0.1); /* Çok şeffaf yap */
    background-image: linear-gradient(45deg, rgba(0, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 255, 255, 0.05) 75%),
                      linear-gradient(45deg, rgba(0, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 255, 255, 0.05) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    
    /* Kareli desenle ilgili 3 satır SİLİNDİ */
    
    border-radius: var(--radius-px, 150px) var(--radius-px, 150px) 0 0;
    overflow: visible; 
}
.aciolcer-body:active {
    cursor: grabbing;
}
/* 7. Madde: Açı İşaretleri (Dinamik JS ile eklenecek) */
.aciolcer-markings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}
.aciolcer-label {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    color: #00ffff;
    transform: translate(-50%, -50%); /* Etiketi ortala */
    
    /* DÜZELTME: Tıklamaları engellemesin */
    pointer-events: none;
}

/* 6. Madde: Kırmızı Hizalama Çizgisi */


/* 4. Madde: Döndürme Butonu */
.aciolcer-rotate-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 0, 0.8); /* Yeşil */
    border: 2px solid #0f0;
    border-radius: 50%;
    cursor: crosshair;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    
    /* DÜZELTME: Konum: 90 Dereceye yakın (Dışarıda) */
    bottom: auto; /* Altı sıfırla */
    top: -25px; /* 150px yüksekliğin 25px üstü */
    left: 50%;
    transform: translateX(-50%); /* Yatayda ortala */
}
.aciolcer-rotate-handle::before {
    content: '↺';
    color: #0f0;
    text-shadow: 0 0 5px #000;
    font-size: 14px;
    font-weight: bold;
}
.aciolcer-draw-handle {
    position: absolute;
    /* DÜZELTME: Başlangıç pozisyonu merkez-alt (JS bunu 'transform' ile ezecek) */
    bottom: 5px; 
    left: 50%;
    transform: translateX(-50%); /* Sadece yatay ortala */
    
    /* DÜZELTME: 50ms animasyonu için 'transform' eklendi */
    transition: transform 0.05s ease-out;
    
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 0, 0.8); /* Kırmızı */
    border: 1px solid #ffaaaa;
    border-radius: 50%;
    cursor: crosshair;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aciolcer-draw-handle::before {
    content: '✎';
    color: #fff;
    font-size: 12px;
}

/* aciolcer.css dosyanızın EN SONUNA ekleyin */

/* Açı Ölçer - Küçük Çizgiler (Ticks) */
.aciolcer-tick {
    position: absolute; /* JS tarafından 'left' ve 'top' ile konumlandırılacak */
    width: 2px;
    background: #00ffff;
    
    /* Kendi merkezi etrafında dönecek */
    transform-origin: center center;
    
    pointer-events: none;
    z-index: 2;
}

.aciolcer-tick.small {
    height: 8px; /* Küçük çizgi boyu */
}

.aciolcer-tick.large {
    height: 15px; /* Büyük çizgi boyu */
}


.aciolcer-draw-label {
    position: absolute;
    /* DÜZELTME: Başlangıç pozisyonu (JS bunu 'transform' ile ezecek) */
    bottom: 25px; /* Butonun 20px üstünde */
    left: 50%;
    transform: translateX(-50%); /* Sadece yatay ortala */
    
    /* DÜZELTME: 50ms animasyonu için 'transform' eklendi */
    transition: transform 0.05s ease-out;

    background: #fff;
    color: #000;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: none; /* Sadece sürüklerken JS ile gösterilecek */
    pointer-events: none; /* Tıklanamaz */
    z-index: 1002;
}

/* aciolcer.css dosyasının EN SONUNA ekleyin */

.aciolcer-resize-handle {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: rgba(255, 0, 255, 0.8); /* Pembe (Cetveldeki gibi) */
    border: 2px solid #f0f;
    border-radius: 50%;
    cursor: nwse-resize; /* Boyutlandırma imleci */
    z-index: 1002;
}