@charset "UTF-8";
/*
* =====================================================================
* SOURCE FILE: Make all style changes here.
* This file compiles to: wwwroot/css/<filename>.css
* DO NOT edit the compiled .css file directly - changes will be overwritten.
* =====================================================================
*/
/* ============================================================
   WebHarita v3 — Map View (index.html) Styles
   ============================================================ */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  overflow: hidden;
}

/* Harita tam ekran; UI panelleri her zaman üstte (tıklama çalışsın) */
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #1e293b;
  z-index: 0;
}

/* --- SIDEBAR TRANSFORM --- */
.hud-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 4000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  width: 340px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.hud-panel.closed {
  transform: translateX(-100%);
}

.hud-panel.closed ~ .drawing-toolbar {
  left: 1px;
}

/* Responsive Sidebar Toggle */
#mobile-toggle {
  position: fixed;
  top: 15px;
  left: 389px;
  z-index: 4500;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-panel.closed ~ #mobile-toggle {
  left: 15px;
}

#sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 3900;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Drawing toolbar artık her zaman görünür — toggle kaldırıldı */
.hud-panel h1 {
  font-size: 1.35rem;
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 800;
}

.hud-panel p {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.6;
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* OpenLayers Overrides */
.ol-control button {
  background: rgba(15, 23, 42, 0.9) !important;
  color: white !important;
  border-radius: 8px !important;
}

.ol-zoom {
  top: 20px;
  right: 20px;
  left: auto;
}

.ol-attribution {
  display: none;
}

/* Sidebar İçindeki Minimal Kullanıcı Bilgisi */
.sidebar-user-info {
  display: none; /* JS wh-visible ekleyince açılacak */
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 20px;
}

.sidebar-user-info.wh-visible {
  display: flex;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.su-project,
.su-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 600;
}

.su-project i {
  color: var(--accent);
  font-size: 0.7rem;
}

.su-user i {
  color: #94a3b8;
  font-size: 0.7rem;
}

.btn-sidebar-logout {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* zoom fix removed as it's no longer at top */
/* Layer Tree */
.layer-tree-container {
  flex: 1;
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.layer-tree-container h3 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.layer-tree {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

.tree-group {
  margin-bottom: 10px;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.85rem;
  font-weight: 600;
}

.group-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tree-items {
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  opacity: 0.8;
  padding: 4px;
  border-radius: 4px;
}

.tree-item:hover {
  opacity: 1;
  background: rgba(56, 189, 248, 0.05);
}

.tree-item input[type=checkbox] {
  cursor: pointer;
  accent-color: var(--accent);
}

/* Drawing Toolbar Toggle kaldırıldı — toolbar her zaman görünür */
/* Drawing Toolbar */
.drawing-toolbar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 389px;
  z-index: 4500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(16px);
  padding: 8px;
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: none;
  box-shadow: 10px 20px 50px rgba(0, 0, 0, 0.6);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* .drawing-toolbar.closed kaldırıldı — gizlenme yok */
.tool-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.tool-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

/* 🌍 BASEMAP + zoom HUD: sağ alt, dikey (üstte katman, altta zoom) */
.map-basemap-zoom-stack {
  position: absolute;
  bottom: 56px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.map-basemap-zoom-stack .basemap-container {
  pointer-events: auto;
  position: relative;
}

.basemap-trigger {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  color: #475569;
  font-size: 1.4rem;
}

.basemap-trigger:hover {
  transform: scale(1.05);
  color: var(--accent);
}

.basemap-trigger.active {
  background: var(--accent);
  color: white;
}

.basemap-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: white;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: panelFade 0.2s ease-out;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.basemap-panel.show {
  display: flex;
}

.bm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 500;
}

.bm-item:hover {
  background: #f1f5f9;
}

.bm-item input[type=radio],
.bm-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #0369a1;
  cursor: pointer;
}

/* Modal Core */
#field-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* guzergah.js ile enjekte edilen hat modalı (project.css yok) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

#layer-wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 9700;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.modal-card {
  background: #0f172a;
  border-radius: 20px;
  width: 460px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.modal-layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.15);
  margin-bottom: 4px;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Field Group inside modal */
.field-group-section {
  margin-bottom: 14px;
}

.field-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.field-input-wrap {
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}

select.field-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpath%20fill%3D%22%2338bdf8%22%20d%3D%22M225.8%2092.8a12%2012%200%200%200-17%200L128%20173.5%2047.2%2092.8a12%2012%200%200%200-17%2017l89.4%2089.4a12%2012%200%200%200%2016.9%200l89.4-89.4a12%2012%200%200%200%20.1-17Z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px !important;
  cursor: pointer;
}

select.field-input option {
  background-color: #0f172a;
  color: #f8fafc;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  background: rgb(30, 41, 59);
}

/* Buttons inside modal */
.btn-save {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #030712;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.btn-cancel {
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

/* 🔍 ZOOM INDICATOR — stack içinde altlığın hemen altında */
.map-basemap-zoom-stack .zoom-indicator {
  position: static;
  max-width: min(280px, 100vw - 40px);
}

.zoom-indicator {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: all 0.2s;
}

.zoom-badge {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.zoom-text {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.7;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 🏎️ CONTEXT BAR (Active Hat/Zone Selection) */
.context-bar {
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4500;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: none;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: contextIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes contextIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
}

.context-label {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.btn-exit-context {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-exit-context:hover {
  background: #ef4444;
  color: white;
}

/* 🔮 SYMBOL PALETTE (Context-Aware) */
#symbol-palette {
  position: absolute;
  top: 135px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4400;
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  display: none;
  gap: 8px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  animation: paletteIn 0.3s ease-out;
  max-width: 90vw;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes paletteIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.palette-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.palette-item:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.palette-item.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f172a;
}

.palette-item i {
  font-size: 1.2rem;
}

.palette-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-item:hover .palette-tooltip {
  visibility: visible;
  opacity: 1;
  bottom: -35px;
}

/* 📝 FEATURE DRAWER (Right Sidebar) */
#feature-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #0f172a;
  z-index: 9500;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

#feature-drawer.open {
  right: 0;
  visibility: visible;
}

.drawer-header {
  padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  scrollbar-width: thin;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
}

/* Proje girişi: URL'de id yokken seçim / boş durum */
.project-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(14px);
  padding: 24px;
  box-sizing: border-box;
}

.project-entry-overlay.wh-visible {
  display: flex;
}

.project-entry-card {
  width: 100%;
  max-width: 440px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  max-height: min(85vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-entry-h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #f1f5f9;
  font-weight: 800;
}

.project-entry-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.project-entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
}

.project-entry-item-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  transition: background 0.15s, border-color 0.15s;
}

.project-entry-item-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.pei-id {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  min-width: 36px;
}

.pei-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pei-go {
  color: #38bdf8;
  font-size: 0.85rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   MOBIL VE TABLET UYUMLULUK (MEDIA QUERIES)
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  #mobile-toggle {
    left: 15px !important;
  }
  .hud-panel {
    width: 280px;
    transform: translateX(-100%);
  }
  .hud-panel.open {
    transform: translateX(0);
  }
  #mobile-toggle {
    display: flex;
  }
  #sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
}
@keyframes paletteIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.palette-item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.palette-item:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.palette-item.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f172a;
}

.palette-item i {
  font-size: 1.2rem;
}

.palette-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-item:hover .palette-tooltip {
  visibility: visible;
  opacity: 1;
  bottom: -35px;
}

/* 📝 FEATURE DRAWER (Right Sidebar) */
#feature-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #0f172a;
  z-index: 9500;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

#feature-drawer.open {
  right: 0;
  visibility: visible;
}

.drawer-header {
  padding: 12px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  scrollbar-width: thin;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
}

/* Proje girişi: URL'de id yokken seçim / boş durum */
.project-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(14px);
  padding: 24px;
  box-sizing: border-box;
}

.project-entry-overlay.wh-visible {
  display: flex;
}

.project-entry-card {
  width: 100%;
  max-width: 440px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  max-height: min(85vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-entry-h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #f1f5f9;
  font-weight: 800;
}

.project-entry-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

.project-entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
}

.project-entry-item-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  transition: background 0.15s, border-color 0.15s;
}

.project-entry-item-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.pei-id {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  min-width: 36px;
}

.pei-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pei-go {
  color: #38bdf8;
  font-size: 0.85rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   MOBIL VE TABLET UYUMLULUK (MEDIA QUERIES)
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  #mobile-toggle {
    left: 15px !important;
  }
  .hud-panel {
    width: 280px;
    transform: translateX(-100%);
  }
  .hud-panel.open {
    transform: translateX(0);
  }
  #mobile-toggle {
    display: flex;
  }
  #sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
  /* UI Adjustments for Mobile */
  .ol-zoom {
    top: 75px;
    right: 15px;
  }
  .map-basemap-zoom-stack {
    bottom: 48px;
    right: 16px;
  }
  /* 
   * 🛑 [AI SEAL / MÜHÜR] 🛑 
   * Kullanıcının kesin talebi: Sidebar kapandığında drawing-toolbar GİZLENMEYECEK (left: 1px kalacak).
   * DO NOT hide this toolbar (e.g. left: -100px) without explicitly asking the USER first!
   */
  .drawing-toolbar {
    left: 1px;
  }
  .hud-panel.open ~ .drawing-toolbar {
    left: 329px;
  }
}
/* --- Extracted Inline Styles --- */
.grid-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.8rem;
}

.wh-fullscreen-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  text-align: center;
}

.wh-panel-message {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
}

/* 📱 RESPONSIVENESS TWEAKS */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .form-grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  #feature-drawer {
    width: calc(100% - 48px); /* Leave space for shrunk drawing toolbar */
    right: calc(-100% + 48px);
  }
  #feature-drawer.open {
    right: 0;
  }
  /* Form elements shrink */
  .drawer-header {
    padding: 8px 12px 6px;
  }
  .drawer-body {
    padding: 10px 12px;
  }
  .drawer-footer {
    padding: 10px 12px;
  }
  .modal-title {
    font-size: 0.9rem;
  }
  .field-input {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .field-label {
    font-size: 0.65rem;
    margin-bottom: 3px;
  }
  .field-group-label {
    margin-bottom: 5px;
    padding-bottom: 2px;
  }
  /* Smart container shrink */
  .smart-progress-container {
    padding: 6px;
  }
  .smart-progress-container .smart-sub-input {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .smart-progress-container .field-input-wrap label.text-xs {
    font-size: 0.6rem;
    margin-bottom: 2px;
  }
  /* Drawing toolbar shrink */
  .drawing-toolbar {
    padding: 4px;
    gap: 4px;
  }
  .tool-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 6px;
  }
}
.project-card {
  width: 280px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 179, 237, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.project-card .project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.project-card .project-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-card .project-icon svg {
  width: 24px;
  height: 24px;
  stroke: #60a5fa;
  fill: none;
}
.project-card .project-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.project-card .project-actions button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.project-card .project-actions button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
.project-card .project-actions button.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
.project-card .project-actions button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}
.project-card .project-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}
.project-card .project-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  min-height: 20px;
  flex: 1;
}
.project-card .project-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.project-card .project-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #64748b;
}
.project-card .project-meta .meta-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.project-card .open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: auto;
}
.project-card .open-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.project-card .open-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/*# sourceMappingURL=index.css.map */
