@import url("./order-confirmation-modal-window.css");
@import url("./archive-search-params-popup.css");
@import url("./order-center-panel.css");
@import url("./aoi-center.css");
@import url("./mini-widget.css");
@import url("./coords.css");
@import url("./nav-sidebar.css");
@import url("./overlay.css");
@import url("./import-popup.css");
@import url("./progress-notification.css");
@import url("./archive-search-buttons.css");
@import url("./satellite-dropdown-list.css");
@import url("./metric-icons.css");
@import url("./autocomplete.css");
@import url("./login.css");
@import url("./sensor-capabilites.css");
@import url("./order-modal-window.css");

/* 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%;
}

.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;
} */

.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: 99999;
  width: 600px;
  max-width: 95vw;
}

.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;
}

/* ─── 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;
  max-width: 200px;
}

.left-part span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block; /* or inline-block */
  min-width: 0; /* IMPORTANT for flex children */
}

.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;
  flex-direction: column;
  gap: 5px; /* space between lines */
  cursor: default;
}

.aoi-entry .top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aoi-entry .order-status {
  font-size: 14px;
}

.aoi-entry .bottom-line,
.aoi-entry .medium-line {
  font-size: 12px;
  color: gray;
}

.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-group2 {
  display: flex;
  flex-direction: row;
  margin: 5px;
  gap: 10px;
}

.aoi-search-group {
  display: flex;
  flex-direction: column;
  margin: 5px 5px 10px 5px;
}

/* Tag select – same style as input */
#tagSearchList {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
}

/* Optional: focus same as input */
#tagSearchList:focus {
  outline: none;
  border-color: #999;
}

#searchByAoiBtn {
  margin: 10px;
}

#searchByAoiBtn:hover {
  opacity: 0.8;
}

#closeOrderPanel,
#closeArchiveSearch,
#closePersonalInfoPanel,
#closeSearchByAoiPanel {
  cursor: pointer;
}

#orderSearchInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1; /* takes all free space */
  margin-left: 20px;
}

#aoiSearchInput,
#searchByAoiInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

#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);
}

#searchByAoiPanel {
  z-index: 10001 !important;
}

#searchByAoiPanel .aoi-toolbar {
  position: relative;
  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,
#orderList,
#sceneSearchResults {
  flex: 1 1 0; /* grow, shrink, base 0 so it truly takes remaining space */
  min-height: 0; /* CRITICAL: allows the element to shrink and enables scrolling */
  overflow-y: auto;
  overflow-x: hidden;
}

.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;
  }
}

#archiveSearchButtonsContainer {
  position: sticky;
  display: none;
  bottom: -15px;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  z-index: 5;
  margin: 5px;
}

#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;
}

.archive-results-panel h4 {
  font-size: 19px;
  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: transparent; /* transparent background */
  border: none !important; /* remove any border */
  outline: none; /* remove focus outline */
  box-shadow: none; /* remove any shadow/border effect */
  cursor: pointer;
  padding: 6px;
  border-radius: 4px; /* optional rounded corners */
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.back-button i {
  color: #fff;
  font-size: 18px;
  border: none;
}

/* ─── 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;
}

.required::before {
  content: " * ";
  color: red;
  font-weight: bold;
}

/* ─── 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;
}

.select-all-container {
  margin: 5px;
}

.results-grouped-list {
  margin: 5px;
}

.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 strong,
.result-item label,
.result-item i.fa-eye {
  font-size: 13px;
}

.result-item:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}

.result-item:has(input[type="checkbox"]:checked) {
  background-color: #e0f3ff; /* light blue when selected */
  border-color: #007bff;
}

/* .results-summary {
  background-color: #fff;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);  
  font-size: 14px;
  color: #333;
} */

.results-toolbar {
  display: flex;
  align-items: center; /* vertically center all children */
  gap: 7px;
  background-color: #3eb489;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 5px;
  color: white;
  font-size: 15px;
}

.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;
}

/* ---- 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 {
  display: none;
}

.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;
}

/* — 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;
}

.archive-search-btn:disabled {
  background: #0056b3;
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

/* 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;
}

/* 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;
  }
}

/* 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: 14px;
  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;
}

/* === AOI inline save – compact & elegant === */

.aoi-inline {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin: 12px 0;
}

.aoi-inline.hidden {
  display: none;
}

.aoi-inline-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.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);
}

.modal-backdrop {
  z-index: 10000; /* temporary fix */
  pointer-events: auto !important; /* this blocks clicks */
}

.modal {
  z-index: 10001;
}

.time-and-resolution {
  display: flex;
  gap: 2px;
}

.tag-edit-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Input — same style as others */
#tagNumberInput {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

/* Button — clean & neutral */
#addTagNumberBtn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f8f8f8;
  font-size: 14px;
  cursor: pointer;
}

/* Subtle interactions */
#addTagNumberBtn:hover {
  background-color: #f0f0f0;
}

#addTagNumberBtn:active {
  background-color: #eaeaea;
}

.clickable {
  color: #1a73e8;
  cursor: pointer;
  text-decoration: none;
}

.clickable:hover {
  opacity: 0.85;
}

.archive-criteria {
  padding: 10px;
  font-family: Arial, sans-serif;
}

.archive-criteria h3 {
  margin: 10px 0 5px;
  font-size: 16px;
  color: #333;
}

.criteria-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 10px 0;
}

.criteria-list li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.criteria-list li strong {
  color: #555;
}

#aoi-coords {
  color: #333; /* normal text */
  font-size: 14px;
}

#aoi-coords .aoi-link {
  color: #1a73e8;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

#aoi-coords .aoi-link:hover {
  color: #1558b0;
  opacity: 0.85;
}

/* Dates */
.time-and-resolution {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

/* AOI & IDs */
.sat-cat {
  font-size: 12px;
  color: #555;
  display: flex;
  flex-wrap: wrap; /* allows multiple rows */
  gap: 4px; /* space between labels */
  max-width: 300px; /* optional: container max width */
}

.sat-cat-label {
  font-size: 12px;
  color: #555;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #ccc;
  flex: 1 1 auto; /* grow/shrink if needed */
  max-width: 140px; /* optional: limit width of each label */
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Metric rows */
.metric-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 4px 0;
}

.metric-item {
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}

/* Timestamp */
.result-item small {
  font-size: 11px;
  color: #777;
}

/* Eye icon */
.result-item i.fa-eye {
  align-self: center;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.result-item i.fa-eye:hover {
  color: #000;
}

/* Remove default <br> spacing impact */
.result-item br {
  display: none;
}

.search-history-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 12px 0 8px;
  padding-left: 6px;
  letter-spacing: 0.3px;
}
