/* === GENEL BODY & HARİTA === */
:root {
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --text-primary: #1f2937;
  --border-color: #d1d5db;
  --light-bg: #f8f9fa;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* Harita görünürlük (Mapbox tek konteyner) */
#map3D { transition: opacity 200ms linear; }

#pp-static-map-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #dbeafe;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(34, 197, 94, 0.58) 0 9%, transparent 10%),
    radial-gradient(circle at 78% 34%, rgba(34, 197, 94, 0.52) 0 13%, transparent 14%),
    radial-gradient(circle at 42% 72%, rgba(34, 197, 94, 0.45) 0 16%, transparent 17%),
    linear-gradient(135deg, #bfdbfe 0%, #93c5fd 46%, #60a5fa 100%);
}

#pp-static-map-backdrop:after {
  content: "2D uydu harita yükleniyor...";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font: 600 14px Arial, sans-serif;
  white-space: nowrap;
}

#pp-static-leaflet-fallback {
  z-index: 2;
}

/* Sidebar CSS'leri sidebar.css dosyasına taşındı */
.footer-tkgm {
  width: 100%;
  text-align: center;
  color: #888;
  font-size: 0.98em;
  padding: 10px 0 4px 0;
  border-top: 1px solid #eee;
  background: #fff;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
}
.footer-tkgm a { color: #1976d2; text-decoration: none; }
/* Body ve HTML artık layout.css'te yönetiliyor */
/* Bu kurallar geriye dönük uyumluluk için korundu */
#map {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  position: relative;
}

/* Katman stilleri */
.centroid-marker {
  z-index: 1000 !important;
}

/* Leaflet kaldırıldı: ilgili stiller temizlendi */
.slope_info {
  margin: 0 1rem 1rem 1rem;
  font-size: 12px;
}
.plot3d {
  width: 100%;
  height: 230px;
  background: #eee;
  position: relative;
  margin-bottom: 1rem;
}
/* Diğer özel CSS'ler ve stillerini style.css'te bırakabilirsin */
.feedback-btn-pro {
  background: #fff;
  color: #d32f2f;
  border: 2px solid #d32f2f;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.08em;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(30,30,40,0.07);
  transition: all 0.18s;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-btn-pro i {
  font-size: 1.2em;
  margin-right: 8px;
}
.feedback-btn-pro:hover, .feedback-btn-pro:focus {
  background: #d32f2f;
  color: #fff;
  border-color: #d32f2f;
  box-shadow: 0 4px 16px rgba(211,47,47,0.13);
}



/* Button separator */
.btn-separator {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 8px;
  vertical-align: middle;
}

/* 3D Toggle buton aktif durumu - parametersButtons.css'te tanımlı */

/* nodata class'ı için buton stilleri - style.css'te tanımlı */

/* layerGroup aktifken turuncu görünüm - harici CSS'te tanımlı */

#toolbar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 12px;
}

#toolbar label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

#toolbar input[type="range"] {
  width: 100px;
  margin-right: 10px;
}

#toolbar span {
  font-weight: bold;
  color: #007bff;
}



/* Harita altı içerik container - 2D/3D toggle için */
.below-map-container {
  transition: max-height 0.9s ease, opacity 0.7s ease, transform 0.7s ease;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(18px);
}

.below-map-container.open {
  opacity: 1;
  max-height: var(--bm-max, 1200px);
  transform: translateY(0);
  overflow: hidden;
}

/* 2D/3D modda harita genişletme
 * Harita alanı yüksekliği: üst bar (61px) ve alt buton alanı (~56px) düşülür
 * → viewport değişince otomatik güncellensin diye 100vh tabanlı tutulur.
 */
/* #mapArea artık .pp-map-container olarak layout.css'te yönetiliyor */
#mapArea {
  /* Layout.css'teki pp-map-container kuralları geçerli */
  transition: height var(--transition-normal, 0.5s ease);
}

#mapArea.expanded {
  /* Expanded durumu için özel kurallar */
  min-height: 500px !important;
}

/* Mapbox sağ üst kontrol kapsayıcısını gizle */
.mapboxgl-ctrl-top-right { display: none !important; }
#cameraControlPanel .cam-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
/* Kullanıcı konum markeri */
.user-location-marker {
  width: 16px; height: 16px; border-radius: 50%;
  background: #2ecc71; border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.35);
}
/* Mapbox canvas tam doldursun */
.mapboxgl-canvas { width: 100% !important; height: 100% !important; }

/* Overlay Drawer: below-map-content mapArea üzerinde kayan çekmece */
#below-map-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 65vh; height: min(65vh, var(--bm-h, 500px));
  transform: translateY(100%); opacity: 0;
  transition: transform 380ms ease, opacity 260ms ease;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  overflow: auto; border-top: 1px solid #e9ecef;
  will-change: transform, opacity;
  z-index: 11000;
  pointer-events: none; /* kapalıyken tıklama almasın */
}
#below-map-content.open { transform: translateY(0%); opacity: 1; pointer-events: auto; }

/* Fullscreen mask + snapshot */
#fs-mask {
  position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none;
  transition: opacity 160ms ease; z-index: 100000;
}
#fs-mask.show { opacity: 1; }
#fs-snapshot {
  position: fixed; inset: 0; background-position: center center; background-size: cover;
  background-repeat: no-repeat; z-index: 100001; opacity: 0; transition: opacity 80ms linear;
  pointer-events: none; /* görünmezken tıklamayı bloklama */
}

/* Body ve HTML artık layout.css'te yönetiliyor - tekrar eden kurallar kaldırıldı */

/* === HARİTA === */
#map {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  position: relative;
  z-index: 1;
  border-bottom: 1.5px solid #ececec;
}

/* Map container improvements */
#mapContainer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* #map2D removed */

/* #map3D artık .pp-map olarak layout.css'te yönetiliyor */
#map3D {
  /* Layout.css'teki pp-map kuralları geçerli */
  background: #000;
  z-index: var(--z-map, 2);
}

#parcelGraphArea {
  z-index: 10 !important;
}

/* === GRAFİK CONTAINER GÖRÜNÜRLÜK KONTROLÜ === */
.graph-container[data-map-mode="2d"] {
  display: none !important;
}

.graph-container[data-map-mode="3d"] {
  display: block !important;
}

/* Grafik buton durumları */
.graph-btn[data-map-mode="2d"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.graph-btn[data-map-mode="3d"] {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Grafik container'ları için transition efektleri */
#myCustomScene,
#myCustomSceneElevation,
#slope-info-panel {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 2D modda grafik container'ları gizle */
[data-map-mode="2d"] {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* 3D modda grafik container'ları göster */
[data-map-mode="3d"] {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Grafik butonları için disabled durumu - nodata class'ı kullanılıyor */

/* Ensure map area is properly sized */
#mapArea {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}

/* Leaflet kaldırıldı */

/* Mapbox container improvements */
.mapboxgl-canvas-container {
  width: 100% !important;
  height: 100% !important;
}

.mapboxgl-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Visibility helpers removed (single map container) */

/* #map2D removed */

/* Ensure 3D map is hidden by default using visibility (not display) */
#map3D {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 700px) {
  #map {
    margin-top: 56px;
  }
  
  #mapArea {
    height: 40vh;
    min-height: 300px;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}/* === ÜST MENÜ - Artık layout.css'te .pp-toolbar olarak yönetiliyor === */
/* Geriye dönük uyumluluk için container stilleri */
#top-menu-bar {
  /* Layout.css'teki pp-toolbar kuralları geçerli */
}

#top-button-container {
  /* İçerik container'ı - unified action bar */
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
}








/* === Responsive üst menü === */
@media (max-width: 600px) {
  #top-button-container {
    gap: 4px;
    font-size: 14px;
  }
}



/* === YATAY ICON BAR (HARİTA İLE PANEL ARASINDA) === */
#icon-container.info-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 12px 10px 12px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin: 15px auto;
  max-width: 1140px;
}

.btn-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  min-width: 90px;
  padding: 12px;
  text-align: center;
  font-weight: 500;
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.95em;
  position: relative;
  overflow: hidden;
}

.btn-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #6610f2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-box:hover::before {
  opacity: 1;
}

.btn-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: #007bff;
}
.btn-box:hover {
  background: #eef2ff;
  border-color: #a6b0ff;
  box-shadow: 0 4px 12px rgba(66,66,255,0.1);
}
.btn-box .label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.06em;
  color: #222;
}
.btn-box .distance-info {
  display: block;
  font-size: 13px;
  line-height: 1.4em;
  color: #222;
  white-space: normal;
  text-align: center;
}

@media (max-width: 900px) {
  #icon-container.info-buttons {
    gap: 7px;
    padding: 8px 5px 5px 5px;
    min-height: 40px;
  }
  #icon-container .btn-box {
    min-width: 70px;
    font-size: 0.97em;
    padding: 7px 7px;
  }
  .plot3d { min-height: 150px; max-height: 250px; }

}
@media (max-width: 600px) {
  #icon-container.info-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px 1px 4px 1px;
    margin: 9px auto 13px auto;
  }
  #icon-container .btn-box {
    min-width: 58px;
    font-size: 0.93em;
    padding: 7px 6px;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}/* === PANEL VE KUTULAR === */
.container-fluid {
  /* Artık layout sisteminde kullanılmıyor - geriye dönük uyumluluk için korundu */
  background: transparent;
  min-height: 0;
  height: auto;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
}
.bg-light, .bg-white {
  position: relative;
  z-index: 98999;
}

/* Grafik ve analiz panelleri */
.slope_info {
  flex-grow: 1;
  min-width: 340px;
  max-width: 410px;
  margin: 0 0.7rem 1rem 0.7rem;
  font-size: 13px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.slope_info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #20c997);
  opacity: 0.8;
}
.d-flex.flex-wrap.justify-content-around > .slope_info {
  min-width: 340px;
  max-width: 410px;
  flex-grow: 1;
}

/* 3D Plot alanı */
.plot3d {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 350px;
  background: #f8f9fa;
  position: relative;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

/* Tekrarlanan media query kaldırıldı */

@media (max-width: 700px) {
  .curve-container { flex-direction: column; }
  .slope_info { margin: 1rem 0; }
}

/* Slope ortalama başlıkları */
.slope_summary {
  margin: 5px 0 0 0;
  font-size: 1.06em;
  font-weight: 600;
}
/* Toggle Fullscreen butonu */
.slope_summary button {
  border: 1px solid #222;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.93em;
  margin-bottom: 5px;
  margin-right: 7px;
  background: #fff;
  cursor: pointer;
  transition: background 0.17s;
}
.slope_summary button:hover {
  background: #f5f5f5;
}




#cat_avg_based, #cat_min_based {
  margin-top: 14px;
}
#cat_avg_based {
  margin-left: 20px;
}

/* --- Responsive grid ve kutu --- */
/* Tekrarlanan media query kaldırıldı */
@media (max-width: 700px) {
  .curve-container { flex-direction: column; }
  .slope_info { margin: 1rem 0; }
}

/* --- Panel ve grafiklerin harita ile çakışmasını engelle --- */
#map, .container-fluid, .bg-light, .bg-white, .row, .col-12 {
  box-sizing: border-box;
}

/* --- Yükleniyor spinner'ı görünür kıl --- */
/* Eski stil kaldırıldı - modal içinde kullanılmak üzere yeni stil tanımı aşağıda (satır 943) */
.loading-spinner {
  border: 6px solid #eee;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
#loading-text {
  text-align: center;
  color: #444;
  font-size: 1.06em;
}

/* --- Ekstra Bilgiler/Footer alanı --- */
#footer, .footer, .bg-white .col-12 {
  background: #fff;
  border-top: 1.5px solid #eee;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
  border-radius: 0 0 12px 12px;
  padding-bottom: 24px;
}

.slope_info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.plot3d {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 350px;
  background: #f8f9fa;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
}

.slope_info:fullscreen .plot3d,
.plot3d:fullscreen {
  width: 100% !important;
  height: 90vh !important;
  min-width: 400px !important;
  min-height: 400px !important;
  max-width: 100% !important;
  max-height: 90vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}

.plotly-graph-div {
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  box-sizing: border-box;
}

/* Plotly container'ları için daha spesifik kurallar */
.plot3d .plotly-graph-div,
.plot3d .js-plotly-plot,
.plot3d .plot-container {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

.plot3d .svg-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.plot3d .main-svg {
  width: 100% !important;
  height: 100% !important;
}

/* Plotly'nin kendi CSS'ini override et */
.plot3d .plotly .main-svg {
  width: 100% !important;
  height: 100% !important;
}

.plot3d .plotly .gl-container {
  width: 100% !important;
  height: 100% !important;
}

/* Renk çubuğu için alan ayır */
.plot3d .plotly .gl-container canvas {
  max-width: calc(100% - 90px) !important;
}

/* Plotly grafiklerinin margin'lerini düzelt */
.plot3d .plotly .main-svg {
  width: 100% !important;
  height: 100% !important;
}

/* Sidebar CSS'leri sidebar.css dosyasına taşındı */





@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@500;600;700&display=swap');
html, body {
  font-family: var(--pp-font-body, 'IBM Plex Sans', sans-serif) !important;
  background: #f7f8fa;
  color: #222;
}
/* #main-content artık .pp-main olarak layout.css'te yönetiliyor */
#main-content {
  /* Layout.css'teki pp-main kuralları geçerli */
  transition: margin-left var(--transition-slow, 0.38s cubic-bezier(.71,-0.03,0,.99));
}

/* === Eğim Butonları Üst Menü Stili === */
#parcel_slope_visibility, #quarter_slope_visibility {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  color: #212529;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 48px;
  font-weight: 600;
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  margin: 2px;
  font-size: 0.95em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible !important;
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
  opacity: 1;
  visibility: visible;
}

#parcel_slope_visibility:hover, #quarter_slope_visibility:hover,
#parcel_slope_visibility.active, #quarter_slope_visibility.active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  opacity: 1;
  visibility: visible;
}

#parcel_slope_visibility i, #quarter_slope_visibility i {
  font-size: 1.1em;
  display: inline-block;
  color: inherit;
}

/* Responsive eğim butonları */
@media (max-width: 600px) {
  #parcel_slope_visibility, #quarter_slope_visibility {
    min-width: 36px;
    font-size: 0.9em;
    padding: 6px 8px;
    overflow: visible !important;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}@media (max-width: 400px) {
  #parcel_slope_visibility, #quarter_slope_visibility {
    width: 32px;
    height: 32px;
    padding: 6px;
    font-size: 12px;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}/* Sidebar CSS'leri sidebar.css dosyasına taşındı */

body, html {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.parcel-label {
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  padding: 2px 6px;
  font-weight: bold;
  text-align: center;
}

/* TKGM tarzı parsel label stili */
.parcel-label-tkgm {
  background: white;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  padding: 2px 6px;
  text-align: center;
  font-family: Arial, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}



.parsel-label-text {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    background: rgba(255,255,255,0.78);
    border-radius: 2px;
    padding: 1px 9px;
    border: 1px solid #a10f19;
    box-shadow: 0 1.5px 8px 0px rgba(120,0,0,0.10);
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
    text-shadow: 0.5px 0.5px 2px #fff;
}
#loading-container {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 30, 30, 0.55);  /* daha koyu overlay */
  z-index: 10001;
  display: none;
  justify-content: center;
  align-items: center;
}

#loading-container .loading-overlay {
  text-align: center;
  color: #fff;
}

#loading-container .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

#loading-text {
  margin-top: 12px;
  font-size: 1.1em;
  font-weight: 500;
  color: white;
}
#map-loading-toast {
  position: absolute;
  top: 70px;
  left: 20px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  color: white;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#map-loading-toast.show {
  display: flex;
}
#map-loading-toast .spinner-border {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

input, select, button, .form-control, .form-select {
  font-family: var(--pp-font-body, 'IBM Plex Sans', sans-serif) !important;
}
input, select, .form-control, .form-select {
  font-size: 1.05em;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #222;
  box-shadow: none;
  outline: none;
  transition: border 0.2s;
}
input:focus, select:focus, .form-control:focus, .form-select:focus {
  border: 1.5px solid #007bff;
  background: #f8f9fa;
}

input::placeholder, .form-control::placeholder {
  color: #888;
  font-size: 1em;
  opacity: 1;
}

/* Yol çizimi marker'ları için stil */
.road-drawing-marker {
  background: #ff4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tamamlanmış yol marker'ları için stil */
.road-drawing-marker.completed {
  background: #28a745;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(40,167,69,0.4);
}

/* Su/Dere çizimi marker'ları için stil */
.water-drawing-marker {
  background: #17a2b8;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tamamlanmış su/dere marker'ları için stil */
.water-drawing-marker.completed {
  background: #28a745;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(40,167,69,0.4);
}

/* Göl çizimi marker'ları için stil */
.lake-drawing-marker {
  background: #20c997;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tamamlanmış göl marker'ları için stil */
.lake-drawing-marker.completed {
  background: #28a745;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(40,167,69,0.4);
}

/* Elektrik çizimi marker'ları için stil */
.electric-drawing-marker {
  background: #fd7e14;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tamamlanmış elektrik marker'ları için stil */
.electric-drawing-marker.completed {
  background: #28a745;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(40,167,69,0.4);
}

/* UserAdding button styles moved to css/userAdding.css */

/* === PARSEL BİLGİLERİ PANELİ === */
#info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin: 15px auto;
  max-width: 1140px;
  padding: 20px;
  border: 1px solid #e9ecef;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  display: block;
  opacity: 1;
}

#info h2 {
  color: #1a273e;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.parcel-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.parcel-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #007bff;
}

.parcel-section h4 {
  color: #1a273e;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.95em;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row b {
  color: #495057;
  font-weight: 600;
  min-width: 120px;
}

.info-row:not(:has(b)) {
  justify-content: center;
  font-style: italic;
  color: #6c757d;
}

@media (max-width: 768px) {
  .parcel-info-container {
    grid-template-columns: 1fr;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .info-row b {
    min-width: auto;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}@media (max-width: 600px) {
  #info {
    margin: 10px;
    padding: 15px;
  }
  
  #info h2 {
    font-size: 1.2em;
  }
  
  .parcel-section {
    padding: 12px;
  }
  
  .parcel-section h4 {
    font-size: 1em;
  }
  
  .info-row {
    font-size: 0.9em;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}/* === PARAMETRE BİLGİLERİ PANELİ === */
#parameters {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin: 15px auto;
  max-width: 1140px;
  padding: 20px;
  border: 1px solid #e9ecef;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  display: block;
  opacity: 1;
}

#parameters h2 {
  color: #1a273e;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #28a745;
  padding-bottom: 10px;
}

.parameters-info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.parameter-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #28a745;
}

.parameter-section h4 {
  color: #1a273e;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .parcel-info-container,
  .parameters-info-container {
    grid-template-columns: 1fr;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .info-row b {
    min-width: auto;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}@media (max-width: 600px) {
  #info,
  #parameters {
    margin: 10px;
    padding: 15px;
  }
  
  #info h2,
  #parameters h2 {
    font-size: 1.2em;
  }
  
  .parcel-section,
  .parameter-section {
    padding: 12px;
  }
  
  .parcel-section h4,
  .parameter-section h4 {
    font-size: 1em;
  }
  
  .info-row {
    font-size: 0.9em;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}/* Rotation Buffer Overlay */
.rotation-buffer-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 20000 !important;
  pointer-events: none !important;
  background: transparent !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Performans optimizasyonları */
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  transition: opacity 0.1s ease-in-out;
}

.rotation-buffer-overlay canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  /* Canvas performans optimizasyonları */
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: transform;
  transform: translateZ(0);
}

/* Buffer Indicator */
.buffer-indicator {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: rgba(0, 0, 0, 0.9) !important;
  color: white !important;
  padding: 15px !important;
  border-radius: 50% !important;
  font-size: 24px !important;
  z-index: 20001 !important;
  pointer-events: none !important;
  border: 2px solid white !important;
  display: block !important;
  visibility: visible !important;
  animation: pulse 1s infinite !important;
  /* Performans optimizasyonları */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: all 0.2s ease-in-out;
}

/* Buffer Indicator Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mahalle selectbox styling - parantez içi metin açık gri */
select option[data-has-proparcel="true"] {
  background: linear-gradient(to right, 
    transparent 0%, 
    transparent calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) calc(100% - 150px), 
    rgba(153, 153, 153, 0.3) 100%
  );
}

/* Alternatif çözüm: select option'ları için genel styling */
select option {
  color: #333;
}

select option[data-inactive="true"] {
  color: #999;
  background-color: #f5f5f5;
}

/* DFA details/collapse */
.dfa-toggle {
  display: inline-block;
  margin-right: 6px;
  padding: 0 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #374151;
}
.dfa-details-row.is-collapsed {
  display: none !important;
}
.dfa-details {
  padding: 8px 6px;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
}
.dfa-details ul {
  margin: 0;
  padding-left: 18px;
}
.dfa-details li {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
}

/* DFA row clickable cursor */
.dfa-row-toggle {
  cursor: pointer;
}

/* === MOD BUTONU (Flip Button uyarlaması) === */
#modButonu{
  opacity: 1;
  outline: 0;
  color: #fff;
  line-height: 40px;
  position: relative;
  text-align: center;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  text-transform: uppercase;
  border-radius: 8px;
}
#modButonu:before,
#modButonu:after{
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  position: absolute;
  transition: 0.5s;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
}
#modButonu:before{
  opacity: 1;
  color: #adadaf;
  padding: 0 30px;
  line-height: 40px;
  background: #323237;
  content: attr(data-front);
  transform: translateY(0) rotateX(0);
}
#modButonu:after{
  opacity: 0;
  color: #323237;
  background: #adadaf;
  content: attr(data-back);
  transform: translateY(-50%) rotateX(90deg);
}
#modButonu:hover:after{
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
#modButonu:hover:before{
  opacity: 0;
  transform: translateY(50%) rotateX(90deg);
}

/* Eski mod butonunu pasife al (gizle ve tıklamayı kapat) */
#modButonu{
  pointer-events: none !important;
  opacity: 0.0 !important;
  filter: grayscale(1) !important;
  cursor: default !important;
  visibility: hidden !important;
  display: none !important;
}

/* Yeni mod butonu: görünürlük ve boyutlandırma (flip için taban ölçüler) */
#modeSwitchBtn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 28px;
  min-height: 28px;
  line-height: 1;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 0 12px;
  margin: 0;
  color: #fff;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}
#modeSwitchBtn:before,
#modeSwitchBtn:after{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  transition: 0.5s;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
#modeSwitchBtn:before{
  content: attr(data-front);
  background: #323237;
  color: #adadaf;
  transform: translateY(0) rotateX(0);
}
#modeSwitchBtn:after{
  content: attr(data-back);
  background: #adadaf;
  color: #323237;
  transform: translateY(-50%) rotateX(90deg);
}
#modeSwitchBtn:hover:after{
  transform: translateY(0) rotateX(0);
  opacity: 1;
}
#modeSwitchBtn:hover:before{
  transform: translateY(50%) rotateX(90deg);
  opacity: 0;
}

/* Topbar sağ grup stilleri sidebar.css'e taşındı */

/* Mode Switch - Topbar uyumlu (açık arkaplan) */
#modeSwitchBtn {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Ön yüz: beyaz zemin + birincil mavi metin ve ince çerçeve */
#modeSwitchBtn:before{
  background: #fff;
  color: var(--primary-color, #007bff);
  box-shadow:
    inset 0 0 0 1.5px var(--primary-color, #007bff),
    0 1px 2px rgba(0,0,0,0.06);
}

/* Arka yüz (hover’da görünen): dolu mavi + beyaz metin */
#modeSwitchBtn:after{
  background: var(--primary-color, #007bff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.22);
}

/* Hover sırasında küçük parıltı */
#modeSwitchBtn:hover:after{
  box-shadow: 0 6px 16px rgba(0,123,255,0.28);
}

/* (Varsa) koyu tonla degrade vurgu */
@supports (color: var(--primary-dark)) {
  #modeSwitchBtn:after{
    background: linear-gradient(135deg,
      var(--primary-color, #007bff),
      var(--primary-dark, #0056b3)
    );
  }
}

/* Hareket azaltma tercihi olanlar için animasyonu yumuşat */
@media (prefers-reduced-motion: reduce) {
  #modeSwitchBtn:before,
  #modeSwitchBtn:after{ transition: 0.2s; }
}

/* Mode Switch - Slate (ters çevirilmiş): normalde koyu, hover'da açık */
#modeSwitchBtn:before{
  background: linear-gradient(135deg, #334155, #0f172a);
  color: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.28);
}
#modeSwitchBtn:after{
  background: #fff;
  color: #334155;
  box-shadow:
    inset 0 0 0 1.5px #334155,
    0 1px 2px rgba(0,0,0,0.06);
}

/* === CESIUM OVERLAY ŞEFFAFLİK === */
/* Cesium container ve canvas'ını şeffaf yap (Mapbox haritası görünsün) */
#cesiumContainer,
#cesiumContainer canvas {
  background: transparent !important;
}

/* === USER MENU - DOSYALARIM (Hamburger menü ile birebir aynı yapı) === */

/* Kullanıcı menüsü iç öğeleri - hamburger ile aynı */
#user-menu-dropdown .dropdown-menu .toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: #e5e7eb;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  text-align: left;
}

#user-menu-dropdown .dropdown-menu .toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

#user-menu-dropdown .dropdown-menu .toggle-btn i {
  width: 18px;
  text-align: center;
  color: #9ca3af;
}

#user-menu-dropdown .dropdown-menu .toggle-btn span {
  font-size: 13px;
  color: #e5e7eb;
  font-weight: 400;
}

/* === DOSYALARIM & UZMAN GÖRÜŞLERİ ALT MENÜLER ===
 * DEPRECATED: Bu stiller artık pp-collapsible component'i tarafından yönetiliyor
 * Bkz: css/components/_collapsible.css
 */