@charset "utf-8";

/* 1. TEMEL SIFIRLAMA VE EKRAN KİLİTLEME */
* { 
    box-sizing: border-box !important; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed; 
    background: #1a1c20;
    display: flex !important;
    flex-direction: column !important;
}

/* 2. 3D GÖRÜNTÜLEYİCİ (viewer) */
#viewer {
    flex: 1 !important; /* Panelden artan alanı kaplar */
    width: 100% !important;
    position: relative !important;
    z-index: 1;
    background: #1a1c20;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. ANA PANEL (İten Yapı) */
.bar {
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    background: #222 !important;
    border-top: 2px solid #4f83cc !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.6);

    /* iPhone'da Butonun Görünmesi İçin Yükseklik Ayarı */
    height: 50vh !important; 
    padding: 0 15px calc(env(safe-area-inset-bottom, 15px) + 5px) 15px !important;
    
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

/* Panel Kapalı Durumu */
.bar.kisa {
    height: calc(55px + env(safe-area-inset-bottom, 0px)) !important;
}

/* 4. OK VE TUTACAK */
.toggle-handle {
    width: 100%;
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.toggle-arrow {
    width: 14px;
    height: 14px;
    border-left: 3px solid #4f83cc;
    border-bottom: 3px solid #4f83cc;
    transform: rotate(-45deg);
    transition: transform 0.4s ease;
}

.bar.kisa .toggle-arrow {
    transform: rotate(135deg);
    margin-top: 10px;
}

/* 5. BİLGİ PANELİ (HUD) */
#mobileInfoBar {
    position: fixed;
    right: 15px;
    bottom: calc(38vh + 15px); /* Panelin hemen üstü */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    z-index: 1000;
    pointer-events: none;
    border-right: 3px solid #4f83cc;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 6. FORM VE BUTONLAR */
.mob-row { display: flex; gap: 8px; margin-bottom: 8px; width: 100%; align-items: center; }
.group { flex: 1; min-width: 0; }
label { font-size: 10px; color: #888; display: block; margin-bottom: 2px; text-transform: uppercase; }
select, input[type="number"] { width: 100%; background: #333; color: white; border: 1px solid #444; padding: 8px; border-radius: 6px; font-size: 16px !important; height: 36px; }

#calcBtn { 
    width: 100%; 
    padding: 14px; 
    background: #34c759; 
    color: white; 
    border-radius: 8px; 
    font-weight: bold; 
    border: none; 
    margin-top: 5px;
    font-size: 15px; 
}

/* 7. MODAL VE KLAVYE DÜZENİ (Kaydırma Odaklı) */
#hesapDiv {
    z-index: 100000 !important;
}

#fiyat {
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    background: #222;
    border-radius: 15px 15px 0 0;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
    font-size: 16px !important; /* iOS Zoom Engeli */
}

/* İŞLEM AKIŞI MERKEZLEME */
#islemAkisi {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 99999 !important;
    display: none; 
    align-items: center; 
    justify-content: center;
}
