/* Modern CSS Reset & Design Tokens */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-card-hover: #273548;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-blue: #38bdf8;
  --accent-blue-hover: #0284c7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Scrollbar Tasarımı */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   HEADER / ÜST BAR
   ========================================== */
.app-header {
  height: 56px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
}

.header-center-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.tool-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tool-btn.active {
  background: var(--accent-blue);
  color: #0f172a;
  font-weight: 600;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  color: #ffffff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* ==========================================
   ANA GÖVDE DÜZENİ (3 SÜTUN)
   ========================================== */
.app-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* 1. SOL SÜTUN: MOBİLYA KATALOĞU */
.sidebar-catalog {
  width: 320px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.catalog-header {
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid var(--border-color);
}

.catalog-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.catalog-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.catalog-search-box {
  position: relative;
  margin-bottom: 10px;
}

.catalog-search-box svg {
  position: absolute;
  left: 10px;
  top: 9px;
  color: var(--text-dim);
}

.catalog-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 10px 7px 32px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}
.catalog-search-input:focus {
  border-color: var(--accent-blue);
}

.category-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-tab {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.cat-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  font-weight: 600;
}

.catalog-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: grab;
  transition: all 0.15s ease;
  position: relative;
}

.catalog-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.catalog-card.dragging {
  opacity: 0.5;
  border: 1px dashed var(--accent-blue);
}

.card-header {
  margin-bottom: 6px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.card-series {
  font-size: 11px;
  color: var(--text-dim);
}

.catalog-tag {
  font-size: 10px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-dimensions {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}

.dim-chip {
  font-size: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}
.dim-chip strong {
  color: var(--text-main);
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-add-item {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.btn-add-item:hover {
  background: var(--accent-blue);
  color: #0f172a;
}

.catalog-footer {
  padding: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-custom-item {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.btn-custom-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   2. MERKEZ: ETKİLEŞİMLİ CANVAS ÇALIŞMA ALANI
   ========================================== */
.canvas-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111827;
}

#floorCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Alt-Üst Yüzen Kontrol Çubukları (Floating Overlays) */
.floating-sub-bar {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.bg-select-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.bg-select-box select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
}

.btn-icon-sub {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.btn-icon-sub:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.floating-zoom-bar {
  position: absolute;
  bottom: 20px;
  right: 280px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.zoom-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.zoom-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* Seçili Eşya Yüzen Hızlı İşlem Çubuğu (Gizmo Bar) */
.floating-gizmo-bar {
  position: absolute;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 24px;
  padding: 4px 8px;
  display: none;
  align-items: center;
  gap: 4px;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.gizmo-item-badge {
  display: none;
}

.gizmo-btn-text {
  display: inline;
}

.gizmo-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.gizmo-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.gizmo-btn.danger:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

/* ==========================================
   3. SAĞ SÜTUN: ÖZELLİKLER & REHBER PANELİ
   ========================================== */
.sidebar-properties {
  width: 260px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.empty-state {
  text-align: center;
  padding: 24px 8px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}
.empty-state svg {
  margin-bottom: 10px;
  opacity: 0.4;
}

.prop-group {
  margin-bottom: 14px;
}

.prop-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.prop-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}
.prop-input:focus {
  border-color: var(--accent-blue);
}

.prop-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.color-swatches {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}
.color-swatch:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

.btn-toggle-switch {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.btn-toggle-switch.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Quick Tips Box in Properties */
.quick-tips-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 16px;
}
.quick-tips-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.quick-tips-text {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================
   MODALLAR & DİYALOG PENCERELERİ
   ========================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}
.btn-close-modal:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Oda Bilgi Kartları (Room Guide) */
.room-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.room-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}
.room-guide-card.featured {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}

.room-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.room-card-dim {
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.room-card-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* Envanter Tablosu */
.inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
}
.inventory-table th {
  background: rgba(0, 0, 0, 0.3);
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.inventory-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
}

.badge-room {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.inventory-summary {
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.inv-summary-item {
  text-align: center;
}
.inv-summary-label {
  font-size: 11px;
  color: var(--text-muted);
}
.inv-summary-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

/* Kaydetme Slot Kartları */
.save-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.slot-info {
  display: flex;
  flex-direction: column;
}
.slot-info strong {
  font-size: 13px;
  color: #ffffff;
}
.slot-info span {
  font-size: 11px;
  color: var(--text-dim);
}

.slot-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-main);
}
.btn-sm:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Toast Bildirim */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 1000;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================
   MOBİL VE RESPONSIVE STİLLER
   ========================================== */
.drawer-drag-handle {
  display: none;
}

.mobile-drawer-close {
  display: none;
}

.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1024px) {
  .sidebar-catalog {
    width: 260px;
  }
  .sidebar-properties {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .app-header {
    height: 50px;
    padding: 0 10px;
  }
  .brand-logo {
    width: 28px;
    height: 28px;
  }
  .brand-title {
    font-size: 13px;
  }
  .brand-badge {
    display: none;
  }
  .header-center-tools .tool-group:first-child,
  .header-center-tools .tool-group:last-child {
    display: none;
  }
  .header-right-actions #btnOpenRoomGuide,
  .header-right-actions #btnOpenInventory,
  .header-right-actions #btnOpenSaveLoad {
    display: none;
  }
  .header-right-actions .btn-action {
    padding: 5px 8px;
    font-size: 11px;
  }

  .app-main {
    padding-bottom: 56px;
    position: relative;
    overflow: hidden;
  }

  .canvas-container {
    width: 100vw;
    height: calc(100vh - 50px - 56px);
    position: relative;
  }

  /* Çekmeceler (Bottom Sheets) */
  .drawer-drag-handle {
    display: block;
    width: 42px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 2px auto 8px auto;
  }

  .mobile-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
  }
  .mobile-drawer-close:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .mobile-drawer-backdrop {
    display: block;
  }
  .mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-catalog,
  .sidebar-properties {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100vw;
    height: 76vh;
    max-height: 540px;
    border-radius: 20px 20px 0 0;
    background: var(--bg-secondary) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
    z-index: 1050;
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
  }

  .sidebar-catalog.open,
  .sidebar-properties.open {
    transform: translateY(0) !important;
  }

  .catalog-header,
  .sidebar-properties .panel-header {
    padding: 8px 16px 12px 16px;
    flex-shrink: 0;
  }

  .catalog-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px 20px 16px;
  }

  .sidebar-properties .panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 24px 16px;
  }

  /* Mobil Alt Gezinme Barı */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }

  .mob-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 2px;
    border-radius: 8px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-nav-btn svg {
    stroke: currentColor;
  }
  .mob-nav-btn:active {
    transform: scale(0.92);
  }
  .mob-nav-btn.active,
  .mob-nav-btn:hover {
    color: var(--accent-blue);
  }
  .mob-nav-btn.danger {
    color: #f43f5e;
  }
  .mob-nav-btn.danger:active {
    background: rgba(244, 63, 94, 0.15);
  }

  /* Yüzen Kontroller */
  .floating-sub-bar {
    top: 8px;
    left: 8px;
    right: 8px;
    max-width: calc(100vw - 16px);
    padding: 4px 8px;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .floating-sub-bar::-webkit-scrollbar {
    display: none;
  }
  .floating-sub-bar .bg-select-box select {
    max-width: 130px;
    font-size: 11px;
  }
  .floating-zoom-bar {
    right: 10px;
    bottom: 68px;
    padding: 3px;
  }
  /* Seçili Eşya Kompakt Barı (Mobilde Küçük Yuvarlak Pill Dock) */
  .floating-gizmo-bar {
    position: fixed !important;
    top: auto !important;
    bottom: 64px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 30px !important;
    padding: 3px 8px 3px 12px !important;
    display: none;
    align-items: center !important;
    gap: 4px !important;
    z-index: 1020 !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6) !important;
    max-width: calc(100vw - 20px) !important;
    white-space: nowrap !important;
  }

  .gizmo-item-badge {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    max-width: 145px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding-right: 8px !important;
    margin-right: 4px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .gizmo-btn-text {
    display: none !important;
  }

  .gizmo-extra {
    display: none !important;
  }

  .gizmo-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  .gizmo-btn:active {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: scale(0.92);
  }

  .gizmo-btn.danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f43f5e !important;
  }

  /* Özellikler Çekmecesi ve İpuçları */
  .sidebar-properties {
    height: auto !important;
    max-height: 52vh !important;
  }

  .quick-tips-box {
    display: none !important;
  }

  /* Modallar */
  .modal-dialog {
    width: 95%;
    max-height: 88vh;
    margin: 10px auto;
  }
  .room-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Silme ve Tehlikeli Aksiyon Butonları */
.btn-danger {
  color: #f43f5e !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: #f43f5e !important;
}

.btn-delete-selected {
  width: 100%;
  margin-top: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.btn-delete-selected:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.context-menu {
  position: absolute;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 4px;
  min-width: 140px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: none;
}
.context-menu-item {
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text-main);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.context-menu-item.danger {
  color: #f43f5e;
}
.context-menu-item.danger:hover {
  background: rgba(244, 63, 94, 0.2);
}
