/* Full screen for html and body */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

/* Modal Styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #6c757d;
  border: none;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Map container fills all */
#map {
  height: 100%;
  width: 100%;
}

/* Bottom-left coordinate box */
#coords {
  position: absolute;
  bottom: 10px;
  left: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Bottom-right widget container */
#miniWidget {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

/* Widget buttons */
.widget-button {
  width: 36px;
  height: 36px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-button:hover {
  background: #e0e0e0;
}

/* Measurement group style */
.widget-measure-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.custom-area-popup .leaflet-popup-content {
  font-weight: bold;
  color: #249ece;
  text-align: center;
  font-size: 14px;
}

.custom-distance-popup .leaflet-popup-content {
  font-weight: bold;
  color: #0088cc;
  text-align: center;
  font-size: 14px;
}

/* Bottom center floating buttons */
.action-buttons-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 1002;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  cursor: pointer;
  width: 80px;
  transition: transform 0.2s, background 0.2s;
}

.action-button i {
  font-size: 18px;
  margin-bottom: 4px;
}

.action-button:hover {
  transform: translateY(-4px);
}

/* 🔵 Archive */
.action-button.archive {
  background-color: #f0f0f0;
  color: #4a4a4a;
}

/* 🟣 Tasking */
.action-button.tasking {
  background-color: #ffe6f0;
  color: #b4005c;
}

/* 🟠 Subscription */
.action-button.subscription {
  background-color: #fff0db;
  color: #ff6600;
}

/* 🔵 Analyse */
.action-button.analyse {
  background-color: #e0f7fa;
  color: #006064;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  cursor: pointer;
  width: 80px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.action-button:hover {
  transform: scale(1.05);
  /* Hover'da büyütme efekti */
  background-color: #f3f3f3;
}

/* .autocomplete-list {
  position: absolute;
  top: 45px;
  right: 20px;
  width: 200px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1003;
  max-height: 200px;
  overflow-y: auto;
} */

/* ─── Öneri Listesi (Autocomplete) ─── */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;

  /* Container ile aynı genişlikte */
  width: 100%;

  /* Gri zemin ve çerçeve */
  background: #f0f0f0;
  border: 1px solid #ccc;

  /* Alt köşeler yuvarlak */
  border-radius: 0 0 20px 20px;

  /* Input ile birleşik görünüm */
  border-top: none;

  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1003;
}

/* .autocomplete-list li {
  padding: 6px 10px;
  cursor: pointer;
} */

/* Öneri satırları */
.autocomplete-list li {
  padding: 8px 12px;
  cursor: pointer;
}

/* .autocomplete-list li:hover {
  background-color: #f0f0f0;
} */

/* Öneri satırları */
.autocomplete-list li {
  padding: 8px 12px;
  cursor: pointer;
}


.popup-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  width: 350px;
}

.popup-content h2 {
  margin-top: 0;
  text-align: center;
}

.drop-zone {
  margin: 15px 0;
  padding: 30px;
  border: 2px dashed #0716e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.drop-zone:hover {
  background-color: #e0f0ff;
}

.file-status {
  margin: 10px 0;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

.hover-btn,
.close-btn {
  padding: 8px 16px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.hover-btn {
  background-color: #0716e0;
  color: white;
  transition: background-color 0.3s;
}

.hover-btn:hover {
  background-color: #0056b3;
}

.close-btn {
  background-color: #ccc;
  color: #222;
}

.close-btn:hover {
  background-color: #aaa;
}

.layer-panel {
  position: absolute;
  right: 60px;
  bottom: 295px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  width: auto;
  /* içeriğe göre genişlesin */
}

/* her thumbnail görsel */
.layer-thumb {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

/* seçili olan katmanın çerçevesi belirgin olsun */
.layer-thumb.selected {
  border-color: #0716e0;
}



/* ─── Arama kutusu & öneri listesini bütünsel blok yap ─── */
/* #searchTopRight {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #fff;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0;
  z-index: 1002;
} */

/* input ve butonu yanyana tut */
/* #searchTopRight input {
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 4px 8px;
  font-size: 14px;
  outline: none;
  width: 180px;
} */

/* #searchTopRight button {
  border: 1px solid #ccc;
  border-left: none;
  background: #e0e0e0;
  border-radius: 0 8px 8px 0;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 15px;
} */
#searchTopRight {
  position: absolute;
  top: 15px;
  right: 20px;

  /* Gri zemin ve çerçeve */
  background: #f0f0f0 !important;
  border: none !important;
  box-shadow: none !important;

  /* Tüm köşeler yuvarlak */
  border-radius: 24px;

  /* İç boşluk: input + buton rahatça sığsın */
  padding: 4px;

  display: flex;
  align-items: center;
  z-index: 1002;
  overflow: visible !important;

  /* 1) Alt çizgiyi tamamen gizle */
  border-bottom: none;
}

/* ─── Input ─── */
#searchTopRight input {
  width: 240px;

  /* Arkaplanı kaldır, container zaten border'lı */
  background: transparent;
  border: none;

  /* Köşe uyumu */
  border-radius: 16px;

  padding: 6px 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

/* ─── Buton (Büyüteç) ─── */
#searchTopRight button {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* autocomplete-list: input'un hemen altında, tam genişlik */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;

  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  /* input ile birleşik görünüm */
  border-radius: 0 0 8px 8px;
  /* sadece alt köşeler yuvarlak */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

  max-height: 200px;
  overflow-y: auto;
  z-index: 1003;
}

.autocomplete-list li {
  padding: 6px 10px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  border-bottom: 1px solid #eee;
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover {
  background-color: #f0f0f0;
}

/* Sol alt logout widget'ı */
#logoutWidget {
  position: absolute;
  bottom: 35px;
  /* haritanın 20px yukarısından */
  left: 10px;
  /* sol kenardan 20px içeride */
  z-index: 1001;
  /* miniWidget ile aynı seviye */
}

/* .widget-button zaten şöyle tanımlı: */
.widget-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  /* gövde rengi */
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

/* bu tanım style.css'te mevcut :contentReference[oaicite:1]{index=1} */

.widget-button:hover {
  background: #e0e0e0;
}

/* 🔹 Navbar - Sol sabit menü */
#navSidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background-color: #1e1e2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15px;
  z-index: 1100;
}

/* 🔸 Butonlar */
.nav-icon {
  width: 100%;
  height: 50px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.nav-icon:hover {
  background-color: #333654;
}

/* 🔰 Navbar Logo */
#navLogo {
  width: 100%;
  height: 60px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#navLogo img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

/* Menü ikonunu biraz aşağıya kaydırmak için margin */
#navToggle {
  margin-top: 15px;
}

.aoi-panel {
  position: absolute;
  top: 75px;
  left: 50px;
  width: 380px;
  height: calc(100% - 90px);
  background: rgb(250, 243, 243);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  z-index: 10010;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
}

.aoi-header {
  background-color: #f9f9f9;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aoi-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}


#aoiSearchInput {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
}

.aoi-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.aoi-toolbar button {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background-color: #f6f6f6;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: inset 0 0 0 1px #ddd;
}

.aoi-toolbar button:hover {
  background-color: #0056b3;
  box-shadow: inset 0 0 0 1px #bbb;
}


/* .aoi-toolbar button:hover {
  background-color: #0056b3;
  #0716e0;
} */

.aoi-list-header {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aoi-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── 1) Genel entry-header stili ─── */
.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  position: relative;
}

.left-part {
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-part {
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-side {
  transform: rotate(0deg);
  transform-origin: center;
  font-size: 14px;
  flex-shrink: 0;
  display: inline-block;
  width: 14px;
  height: 14px;
  text-align: center;
  line-height: 14px;
}

/* ─── 2) Detaylar başta gizli ─── */
.entry-details {
  display: none;
  padding: 4px 16px 8px 32px;
  background: #fafafa;
  border-left: 3px solid #0716e0;
}

/* ─── 3) "open" sınıfı eklendiğinde ─── */
/* Ok ikonunu döndür */
.entry-header.open .right-side {
  transform: rotate(90deg);
}

/* ─── 4) İndent (girinti) farkları ─── */
/* Klasör başlığı daha kalın */
.folder-header {
  font-weight: bold;
}

/* Dosya başlıklarını biraz içeri kaydır */
.file-header {
  padding-left: 24px;
}

/* Dosya detaylarını daha da içeri kaydır */
.file-header+.entry-details {
  padding-left: 40px;
}

/* ─── 5) (İsteğe bağlı) My AOIs satırına mavi şerit ─── */
.aoi-list>.entry-header.folder-header.open {
  border-left: 3px solid #0716e0;
}


.aoi-list>div:hover {
  background-color: #f5f5f5;
}

.aoi-list i {
  color: #555;
}

.aoi-entry {
  padding: 6px 10px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: default;
}

.aoi-entry:hover {
  background-color: #f5f5f5;
}

.aoi-entry span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.aoi-entry i.fa-trash {
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.aoi-entry i.fa-trash:hover {
  color: #cc0000;
}

/* Arama kutusunu grup haline getir (görsel hizalama için) */
.aoi-search-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

#aoiSearchInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

#btnLogoutNow {
  font-size: 12px;
  padding: 4px 8px;
  width: fit-content;
  margin: 1 auto;
  display: block;
}

.entry-header .entry-date {
  margin-left: auto;
  font-size: 12px;
  color: #666;
}

.entry-header i.fa-trash {
  color: #888;
  transition: color 0.2s;
}

.entry-header i.fa-trash:hover {
  color: #cc0000;
}

/* Ok ikonunun dönüş animasyonu */
.entry-header i.fa-chevron-right {
  /* transition: transform 0.3s ease; */
  position: relative;
  transform-origin: center;
}

.entry-header.open i.fa-chevron-right {
  transform: rotate(90deg);
}

/* Detay bölümü (başta gizli) */
.entry-details {
  display: none;
  padding: 8px 16px;
  background: #fafafa;
  border-left: 3px solid #0716e0;
  font-size: 14px;
  color: #333;
}

.entry-header i.fa-chevron-right {
  /* transition: transform 0.3s ease; */
  position: relative;
  transform-origin: center;
}

.entry-header.open i.fa-chevron-right {
  transform: rotate(90deg);
}

/* Search by AOI panelindeki toolbar'a üst boşluk ekle */
#searchByAoiPanel .aoi-toolbar {
  position: relative;
  margin-top: 7px;

  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

/* ----------------------------------
   AOI Center — entry aç/kapa stili
---------------------------------- */

/* 1) Başlangıçta tüm detayları gizle */
.entry-details {
  display: none;
}



/* 3) Sağ ok ikonuna hafif dönüş animasyonu */
.entry-header .fa-chevron-right {
  /* transition: transform 0.2s ease; */
  position: relative;
  transform-origin: center;
}

/* 4) open sınıfı eklenince oku 90° döndür */
.entry-header.open .fa-chevron-right {
  transform: rotate(90deg);
}

.entry-header .fa-chevron-right {
  /* transition: transform 0.2s ease; */
  position: relative;
  transform-origin: center;
}

.entry-header.open .fa-chevron-right {
  transform: rotate(90deg);
}

/* ─── 1) Entry başlıklarını flex yap, sil ikonuna auto margin ver ─── */
.entry-header {
  display: flex;
  align-items: center;
}

/* Çöp kutusu ikonunu en sağa iter */
.entry-header .fa-trash {
  margin-left: auto;
}

/* İlk span'a (dosya adı) flex:1 ver ki kalan alanı kaplasın */
.entry-header>span:first-of-type {
  flex: 1;
  margin: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* ✅ Bu satır hizalamayı düzeltir */
}

.entry-header.open>span:first-of-type {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.entry-header .right-side {
  width: 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  transform-origin: center;
}


/* ─── 2) Liste konteynerlerine maksimum yükseklik ve kaydırma ─── */
#archiveHistoryResults,
#aoiList,
#sceneSearchResults {
  max-height: 760px;
  overflow-y: auto;
  overflow-x: hidden;
  /* yatay scroll engellenir */
}

#orderList {
  max-height: 800px;
  overflow-y: auto;
  overflow-x: hidden;
  /* yatay scroll engellenir */
}

.entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 38px;
  overflow: hidden;
}

/* Yazı kısmı */
.entry-header>span:first-of-type {
  flex: 1 1 auto;
  margin: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sabit sağ kutu */
.entry-header .right-side {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  transform-origin: center;
  text-align: center;
  line-height: 14px;
}

/* Çöp kutusu */
.entry-header .fa-trash {
  background: #f0f0f0;
  padding: 6px;
  border-radius: 6px;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.2s ease;
}

.entry-header .fa-trash:hover {
  background-color: #ffe6e6;
  color: #cc0000;
}

/* ─── 1. Global Reset ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── 2. Body & Modern Login Background ─── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Animated Particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}

.particle:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
}

.particle:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
}

.particle:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ─── 3. Modern Login Wrapper ─── */
.login-wrapper {
  width: 90vw;
  max-width: 450px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 10;
}

/* ─── 4. Modern Login Container ─── */
.login-container {
  width: 100%;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #667eea);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }
}

/* ─── 5. Logo Section ─── */
.logo-section {
  margin-bottom: 40px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  animation: pulse 2s infinite;
}



@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.logo-section h1 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.logo-section p {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

/* ─── 6. Form Header ─── */
.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-header p {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

/* ─── 7. Modern Input Groups ─── */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  z-index: 2;
  transition: color 0.3s ease;
}

.modern-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 12px;
  padding: 16px 16px 16px 48px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modern-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-input:focus+.input-icon {
  color: #3b82f6;
}

.modern-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.3s ease;
}

.modern-input:focus~.input-focus-border {
  width: 100%;
}

/* ─── 8. Form Options ─── */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container input:checked~.checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}

.checkmark:after {
  content: '';
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
  display: block;
}

.checkbox-text {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.forgot-link {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ─── 9. Modern Login Button ─── */
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-loader {
  display: none;
  position: relative;
  z-index: 1;
}

.login-btn.loading .btn-text {
  display: none;
}

.login-btn.loading .btn-loader {
  display: block;
}

/* ─── 10. Login Footer ─── */
.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.login-footer p {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.archive-search-popup {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  z-index: 10;
  display: none;
  /* başta gizli */
  padding-bottom: 12px;
  display: none;
  flex-direction: column;
  height: 100%;
}

.archive-search-popup .archive-body {
  padding: 10px 12px 8px;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.archive-search-popup .date-range-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.archive-search-popup .dash {
  font-size: 18px;
}

.archive-search-popup label {
  font-weight: bold;
  font-size: 14px;
}

/* #archiveSearchButtonsContainer {
  position: sticky;
  display: none;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  z-index: 5;
  margin-left: 3px;
}


#archiveSearchButtonsContainer button {
  padding: 6px 10px;
  font-size: 11px;
  min-width: 30px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  white-space: nowrap;
} */

#archiveSearchButtonsContainer button {
  padding: 4px 8px;
  font-size: 11px;
  min-width: auto;
  max-width: 80px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: all 0.2s ease;
}

#archiveSearchButtonsContainer button i {
  font-size: 14px;
}

#archiveSearchButtonsContainer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.archive-results-panel h4 {
  font-size: 16px;
  margin: 8px 0 4px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.archive-results-panel h4 i {
  color: #007bff;
}

/* ─── Back Button ─── */
.back-button {
  background-color: #007bff;
  /* sarı */
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  color: black;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
  background-color: #0750d6;
}

/* ─── Sensor Capabilities Styles ─── */
.sensor-capabilities-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.section-header {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.section-header i {
  margin-right: 6px;
  color: #2f8ffd;
  font-size: 18px;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.option-btn {
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 6px;
  background: #fff;
  color: #0716e0;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.option-btn:hover,
.option-btn.selected {
  background: #0716e0;
  color: #fff;
}

.select-dropdown {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  margin-bottom: 6px;
}

/* AOI Center başlığı */
#aoiCenterPanel .aoi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
}

/* Yenile ve Kapat ikonlarını sığdıran konteyner */
#aoiCenterPanel .aoi-header .header-actions {
  display: flex;
  gap: 8px;
  /* ikonlar arası boşluk */
}

/* İkon buton stili */
#aoiCenterPanel .aoi-header .header-actions i {
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  /* tıklanabilir alanı büyütmek için */
}

/* ─── Archive Results Popup ─── */
/* .archive-results-popup {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  max-height: 90%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10020;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.results-list-inline {
  margin-top: 16px;
  border-top: 1px solid #ccc;
  padding-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}


.archive-results-popup .results-header {
  background: #26a69a;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-results-popup .results-header i {
  cursor: pointer;
}

.archive-results-popup .results-summary {
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.archive-results-popup .results-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.archive-results-popup .result-item {
  display: flex;
  align-items: flex-start;
  padding: 6px 16px;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}

.archive-results-popup .result-item:last-child {
  border-bottom: none;
}

.archive-results-popup .result-item input {
  flex-shrink: 0;
}

.archive-results-popup .result-item .item-info {
  flex: 1;
  font-size: 13px;
  color: #333;
  min-width: 0; /* Flexbox overflow için gerekli */
/* word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
} */

.archive-results-popup .results-footer {
  padding: 10px 16px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.archive-results-popup .footer-actions button {
  margin-left: 6px;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.archive-results-popup .footer-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

*/

/* ─── Archive Results ─── */
.archive-results-panel {
  padding: 16px;
  background-color: #fff;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
  margin-left: 7px;
}

.results-summary {
  font-size: 13px;
  margin-bottom: 12px;
  margin-left: 7px;
}

.results-grouped-list h4 {
  margin: 16px 0 8px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  color: #004e96;
}

/* 
.result-item {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4em;
} */
.result-item {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4em;
}

.result-item:hover {
  background-color: #eef4f8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  border-color: #cbd6e2;
}

.result-item strong,
.result-item label,
.result-item i.fa-eye {
  font-size: 13px;
}


.result-item>div:first-child {
  flex: 1;
  min-width: 0;
  /* Flexbox overflow için gerekli */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.result-item .fa-eye {
  flex-shrink: 0;
  cursor: pointer;
  color: #007bff;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.result-item .fa-eye:hover {
  background-color: #e3f2fd;
}

.result-item .fa-eye.active {
  color: #007bff;
  background-color: transparent;
  border: none;
  position: relative;
}

.result-item .fa-eye.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 100%;
  height: 2px;
  background-color: #007bff;
  border-radius: 1px;
}

#searchTopRight {
  padding-bottom: 0;
}

/* ---- 1) Liste kutusuna genel stil ---- */
#searchTopRight .autocomplete-list {
  position: absolute;
  top: 100%;
  /* input'un hemen altında */
  left: 0;
  right: 0;
  max-height: 200px;
  /* istenirse ayarla */
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;

  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  /* input'un alt çizgisiyle birleşsin */
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

/* ---- 2) Liste öğeleri ---- */
/* #searchTopRight .autocomplete-list li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color .15s;
} */

#searchTopRight .autocomplete-list li {
  padding: 6px 10px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  border-bottom: 1px solid #eee;

  /* 3) Her satırı da hafif yuvarlak yap */
  border-radius: 8px;

  /* Satırlar arasında boşluk */
  margin: 4px 8px;
}

#searchTopRight .autocomplete-list li:last-child {
  border-bottom: none;
}

#searchTopRight .autocomplete-list li:hover {
  background-color: #f0f0f0;
}

/* ────────────────────────────────────────────────────────── */
/* 1) Arama kutusunun ALT ÇİZGİSİNİ GİZLE ve PILl-SHAPE ver */
/* ────────────────────────────────────────────────────────── */
#searchTopRight,
.leaflet-control-geocoder-form {
  /* Eskiden border-bottom'a takılı kaldıysa override et */
  border: none !important;
  background: #f0f0f0 !important;
  border-radius: 24px !important;
  /* Yüksek radius = tam yumuşak */
  padding: 4px 8px !important;
  /* İç boşluk */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

#searchTopRight input,
.leaflet-control-geocoder-form input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  border-radius: 20px !important;
  padding: 6px 12px !important;
  width: 220px;
  /* İsteğe göre ayarla */
  box-sizing: border-box;
}

/* Arama butonunu (büyüteç) taşan kısımlara müdahale edilebilir */
#searchTopRight button,
.leaflet-control-geocoder-form button {
  background: transparent !important;
  border: none !important;
  padding: 6px !important;
}

/* ────────────────────────────────────────────────────────── */
/* 2) Öneri Listesini (Sonuç Kutusunu) ALT'TAN TAM YUVARLA   */
/* ────────────────────────────────────────────────────────── */
.autocomplete-list,
.leaflet-control-geocoder-results {
  background: #f0f0f0 !important;
  /* gri zemin */
  border: none !important;
  /* kenarlıkları kaldır */
  border-radius: 24px !important;
  /* tüm köşeler yuvarlak */
  box-shadow: none !important;
  /* gölgeyi kaldır veya isteğe bağlı bırak */
  top: 100%;
  /* wrapper'ın hemen altında */
  left: 0;
  right: 0;
  width: 100% !important;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1003;
  font-size: 14px !important;
  /* Ana liste metni küçüldü */
}

.autocomplete-list li,
.leaflet-control-geocoder-results li {
  margin: 0 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: #fff;
  /* öğeler beyaz kalsın */
}

/* Son öğenin alt çizgisini kaldır */
.autocomplete-list li:last-child,
.leaflet-control-geocoder-results li:last-child {
  border-bottom: none;
}

/* Scrollbar track'i de gri hale getir */
.autocomplete-list::-webkit-scrollbar-track,
.leaflet-control-geocoder-results::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/* İsteğe bağlı: thumb renk uyumu */
.autocomplete-list::-webkit-scrollbar-thumb,
.leaflet-control-geocoder-results::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}

/* Hover efekti */
.autocomplete-list li:hover,
.leaflet-control-geocoder-results li:hover {
  background-color: #f0f0f0 !important;
}

/* Öğe üzerinde gezinince vurgulama */
#searchTopRight .autocomplete-list li:hover {
  background-color: #f5f5f5;
}

/* Arama terimiyle eşleşen kısmı kalınlaştırmak istersen */
/* <li>İçindeki <span class="highlight">anka</span>, Zamfara…</li> şeklinde */
#searchTopRight .autocomplete-list .highlight {
  font-weight: 600;
  color: #222;
}

/* ---- 3) Scrollbar özelleştirme (Webkit tabanlı) ---- */
#searchTopRight .autocomplete-list::-webkit-scrollbar {
  width: 6px;
}

#searchTopRight .autocomplete-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#searchTopRight .autocomplete-list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}

#searchTopRight .autocomplete-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ── Şifre Değiştir Formu ── */
.change-password-body .password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Gap'ı biraz küçülttüm */
  width: 100%;
  /* Formu konteynırına tam oturt */
  box-sizing: border-box;
  /* Padding + border hesaplamasını kapsa */
}

/* Her form grubu artık label + input arası 4px, grup arası 12px */
.password-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.password-form .form-group label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.password-form .form-group input {
  width: 100%;
  /* %100 genişlik */
  box-sizing: border-box;
  /* kenarlık + padding dahil */
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.password-form .form-group input:focus {
  outline: none;
  border-color: #0716e0;
}

/* Hata / başarı mesajları */
.password-form .error-message {
  color: #cc0000;
  font-size: 12px;
  min-height: 16px;
  /* Yer hep kalsın */
}

.password-form .success-message {
  color: #28a745;
  font-size: 12px;
  min-height: 16px;
}

/* Buton grubu: biraz daha boşluk ve tam sağa yaslama */
.password-form .btn-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  /* Biraz daha yukarıdan uzaklaştı */
}

/* Ortak buton stilleri */
.password-form .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* İptal butonu */
.password-form .btn.cancel {
  background-color: #e0e0e0;
  color: #333;
}

.password-form .btn.cancel:hover {
  background-color: #d5d5d5;
}

/* Onay butonu */
.password-form .btn.confirm {
  background-color: #0716e0;
  color: #fff;
}

.password-form .btn.confirm:hover {
  background-color: #0056cb;
}

.field-error {
  display: none;
  /* Başta gizli */
  color: #cc0000;
  font-size: 12px;
  margin-top: 4px;
}

.input-error {
  border-color: #cc0000 !important;
}

/* — Tarih aralığı satırı — */
.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.archive-search-popup input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

/* — Slider wrapper — */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.slider-wrapper input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right,
      #0716e0 0%,
      #0716e0 var(--range-percent, 0%),
      #d1d1d1 var(--range-percent, 0%),
      #d1d1d1 100%);
  outline: none;
}

/* Thumb (nokta) */
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #0716e0;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -4px;
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #0716e0;
  border-radius: 50%;
  cursor: pointer;
}

.slider-wrapper input[type="range"]::-ms-thumb {
  width: 12px;
  height: 12px;
  background: #0716e0;
  border-radius: 50%;
  cursor: pointer;
}

/* Firefox doluluk barı */
.slider-wrapper input[type="range"]::-moz-range-progress {
  background: #0716e0;
  height: 4px;
  border-radius: 2px;
}

/* IE/Edge doluluk barı */
.slider-wrapper input[type="range"]::-ms-fill-lower {
  background: #0716e0;
}

.slider-wrapper span {
  min-width: 40px;
  font-size: 13px;
  color: #333;
}

/* — Sensor Capabilities — */
.sensor-capabilities-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e0e0e0;
}

.sensor-capabilities-section .section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.sensor-capabilities-section .options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sensor-capabilities-section .option-btn {
  padding: 8px 14px;
  border: 1px solid #0716e0;
  border-radius: 6px;
  background: #fff;
  color: #0716e0;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sensor-capabilities-section .option-btn:hover,
.sensor-capabilities-section .option-btn.selected {
  background: #0716e0;
  color: #fff;
}

.sensor-capabilities-section .select-dropdown {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

/* — Search butonu — */
.archive-search-btn {
  width: 100%;
  padding: 12px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #0716e0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.archive-search-btn:hover {
  background: #0056b3;
}

/* AOI Center aç‐kapa */
.aoi-list .entry-details {
  display: none;
}

.aoi-list .entry-header.open+.entry-details {
  display: block;
}

.aoi-list .entry-header .right-side {
  /* transition: transform .2s; */
  transform-origin: center;
  display: inline-block;
  width: 14px;
  height: 14px;
  text-align: center;
  line-height: 14px;
}

.aoi-list .entry-header.open .right-side {
  transform: rotate(90deg);
}

/* style.css'inize ekleyin */

/* 1) Menü butonu */
.entry-header .menu-btn {
  margin-left: 8px;
  cursor: pointer;
  color: #555;
}

/* 2) Context-menu konteyneri */
.context-menu {
  position: fixed !important;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  z-index: 20000 !important;
  min-width: 140px;
}

/* Menü öğeleri */
.context-menu .item {
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
}

.context-menu .item:hover {
  background-color: #f0f0f0;
}

.context-menu .item i {
  margin-right: 8px;
}

/* Progress Bar + Notification Styles */
.progress-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc2626;
  /* Red background */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 10px;
  width: 280px;
  z-index: 10000;
  animation: slideInTop 0.4s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Notification type styles */
.progress-notification.success {
  background: #059669;
  /* Green background for success */
}

.progress-notification.error {
  background: #dc2626;
  /* Red background for error */
}

.progress-notification.info {
  background: #2563eb;
  /* Blue background for info */
}

/* Progress bar removed - only text and background */

.progress-notification span {
  color: white;
  /* White text */
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* Animation for slide in from top */
@keyframes slideInTop {
  from {
    transform: translateY(-100%) translateX(-50%);
    opacity: 0;
  }

  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}

/* Animation for slide out to top */
@keyframes slideOutTop {
  from {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(-100%) translateX(-50%);
    opacity: 0;
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .progress-notification {
    width: calc(100vw - 40px);
    left: 50%;
    transform: translateX(-50%);
  }
}

/* gizle/göster için yardımcı */
.hidden {
  display: none !important;
}

/* crown için hafif vurgu (opsiyonel) */
#navAdmin i {
  color: gold;
}

/* ===== MODERN PERSONAL INFO STYLES ===== */

/* User Avatar Section */
.user-avatar-section {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.avatar-circle i {
  font-size: 32px;
  color: white;
}

.user-name {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
}

.user-role {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.info-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 18px;
  color: white;
}

.card-content {
  flex: 1;
}

.card-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

/* Modern Change Password Button */
.btn.change-modern {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn.change-modern:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn.change-modern i {
  font-size: 12px;
}

/* Account Stats */
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}

.stat-item {
  text-align: center;
  padding: 16px 8px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .account-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-card {
    padding: 12px;
  }

  .card-icon {
    width: 35px;
    height: 35px;
    margin-right: 12px;
  }

  /* WMS Tile üzerine hover efekti */
  .wms-tile:hover {
    border: 2px solid #ff6600;
    /* Turuncu kenarlık rengi */
    cursor: pointer;
    /* İmleç pointer olarak değişir */
  }

  .result-card.highlighted {
    background-color: #fce4a0;
  }

}

/* ─── Login Page Responsive Design ─── */
@media (max-width: 768px) {
  .login-wrapper {
    width: 95vw;
    max-width: 400px;
    padding: 20px;
  }

  .login-container {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .logo-circle {
    width: 70px;
    height: 70px;
  }

  .logo-circle i {
    font-size: 28px;
  }

  .logo-section h1 {
    font-size: 24px;
  }

  .form-header h2 {
    font-size: 20px;
  }

  .modern-input {
    padding: 14px 14px 14px 44px;
    font-size: 14px;
  }

  .input-icon {
    left: 14px;
    font-size: 14px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .login-btn {
    padding: 14px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    width: 100vw;
    padding: 16px;
  }

  .login-container {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .logo-section {
    margin-bottom: 32px;
  }

  .logo-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .logo-circle i {
    font-size: 24px;
  }

  .logo-section h1 {
    font-size: 22px;
  }

  .logo-section p {
    font-size: 13px;
  }

  .form-header {
    margin-bottom: 24px;
  }

  .form-header h2 {
    font-size: 18px;
  }

  .form-header p {
    font-size: 13px;
  }

  .input-group {
    margin-bottom: 20px;
  }

  .modern-input {
    padding: 12px 12px 12px 40px;
    font-size: 13px;
    border-radius: 10px;
  }

  .input-icon {
    left: 12px;
    font-size: 13px;
  }

  .form-options {
    margin-bottom: 24px;
  }

  .checkbox-text {
    font-size: 13px;
  }

  .forgot-link {
    font-size: 13px;
  }

  .login-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .login-footer {
    margin-top: 24px;
    padding-top: 20px;
  }

  .login-footer p {
    font-size: 11px;
  }
}

/* Toast Notification Styles */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-info {
  border-left-color: #3b82f6;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-message {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOutRight 0.3s ease-in forwards;
}

/* Modal Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.3s ease-out;
  border: 3px solid transparent;
  margin-left: 250px;
}

/* Başarı modal'ı için yeşil çerçeve */
.modal-content.modal-success {
  border-color: #10b981;
}

/* Hata modal'ı için kırmızı çerçeve */
.modal-content.modal-error {
  border-color: #ef4444;
}

.modal-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-icon {
  font-size: 24px;
}

.modal-success .modal-icon {
  color: #10b981;
}

.modal-error .modal-icon {
  color: #ef4444;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.modal-body {
  padding: 16px 24px;
}

.modal-body p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.modal-footer {
  padding: 16px 24px 20px;
  display: flex;
  justify-content: flex-end;
}

.modal-btn {
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

/* Başarı modal'ı için yeşil buton */
.modal-success .modal-btn {
  background: #10b981;
}

.modal-success .modal-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Hata modal'ı için kırmızı buton */
.modal-error .modal-btn {
  background: #ef4444;
}

.modal-error .modal-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Form Message Styles */
.form-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-message-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-message i {
  font-size: 16px;
}

/* Context Menu Styles */
.context-menu {
  position: fixed;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 160px;
  z-index: 10000;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.context-menu .item {
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  transition: background-color 0.15s ease;
}

.context-menu .item:hover {
  background-color: #f3f4f6;
}

.context-menu .item i {
  width: 16px;
  text-align: center;
  font-size: 12px;
}

.context-menu .item:first-child {
  border-radius: 8px 8px 0 0;
}

.context-menu .item:last-child {
  border-radius: 0 0 8px 8px;
}

.context-menu .item:only-child {
  border-radius: 8px;
}

/* Folder and AOI specific styles */
.folder-header,
.file-header {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.folder-header:hover,
.file-header:hover {
  background-color: #f9fafb;
}

.folder-header.open,
.file-header.open {
  background-color: #f3f4f6;
}

.menu-btn {
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.menu-btn:hover {
  background-color: #e5e7eb;
}

.folder-menu-btn,
.aoi-menu-btn {
  margin-left: 8px;
}

/* Empty folder message */
.empty-folder {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
}

/* Ungrouped folder styling */
.ungrouped-folder {
  background-color: #f9fafb;
  border-left: 3px solid #6b7280;
}

.ungrouped-folder .fa-folder-open {
  color: #6b7280 !important;
}

/* ---- CC, ONA, AC Değerleri için İkonlu Gösterim ---- */
.metric-display {
  display: flex;
  gap: 15px;
  margin: 8px 0;
  align-items: center;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  font-size: 13px;
  color: #495057;
  font-weight: 500;
}

.metric-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.metric-value {
  font-weight: 600;
  color: #212529;
}

/* CC (Cloud Coverage) ikonu */
.metric-icon.cc::before {
  content: "☁";
  font-size: 14px;
  color: #6c757d;
}

/* ONA (Off Nadir Angle) ikonu */
.metric-icon.ona::before {
  content: "∠";
  font-size: 16px;
  color: #6c757d;
  font-weight: bold;
}

/* AC (AOI Coverage) ikonu */
.metric-icon.ac::before {
  content: "▧";
  /* ▦veya ▧, ▨, ▩ */
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;

  background: white;
  border: 1px solid #6c757d;
  color: #6c757d;
  padding: 0;
  box-sizing: border-box;
}

/* .metric-icon.ac::after {
  content: "";
  width: 8px;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    #4a90e2,
    #4a90e2 1px,
    transparent 1px,
    transparent 3px
  );
  border: 1px solid #4a90e2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ortalar */

/* Fix: Bootstrap modal merkezlensin */
 .modal-content {
  margin-left: 0 !important;
}
/* === AOI inline save – compact & elegant === */
.aoi-inline {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  margin: 12px 0;
}

.aoi-inline.hidden {
  display: none;
}

.aoi-inline-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.aoi-inline-label {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 4px;
}

.aoi-inline-input {
  width: 100%;
  height: 34px;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.aoi-inline-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-sm {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
}

.btn-light {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.btn-light:hover {
  background: #e5e7eb;
}

.btn-primary {
  background: #4f46e5;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}