/**
 * Immobilienverwaltung – properties.css
 */

/* ── Tab-Navigation ─────────────────────────────────────────── */
.properties-tab {
  white-space: nowrap;
  cursor: pointer;
}

.properties-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.dark .properties-tab.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

/* ── Objekt-Karte in der Liste ───────────────────────────────── */
.prop-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.prop-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.dark .prop-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ── Status-Badges ───────────────────────────────────────────── */
.prop-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prop-badge-green  { background: #dcfce7; color: #166534; }
.prop-badge-yellow { background: #fef9c3; color: #854d0e; }
.prop-badge-red    { background: #fee2e2; color: #991b1b; }
.prop-badge-gray   { background: #f3f4f6; color: #374151; }
.prop-badge-blue   { background: #dbeafe; color: #1e40af; }

.dark .prop-badge-green  { background: #14532d; color: #86efac; }
.dark .prop-badge-yellow { background: #422006; color: #fde047; }
.dark .prop-badge-red    { background: #450a0a; color: #fca5a5; }
.dark .prop-badge-gray   { background: #374151; color: #d1d5db; }
.dark .prop-badge-blue   { background: #1e3a5f; color: #93c5fd; }

/* ── Einheiten-Tabelle ───────────────────────────────────────── */
.units-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 8px 12px;
}

.dark .units-table th {
  color: #9ca3af;
}

.units-table td {
  padding: 10px 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.dark .units-table td {
  border-top-color: #374151;
}

.units-table tr:hover td {
  background: #f9fafb;
}

.dark .units-table tr:hover td {
  background: #1f2937;
}

/* ── Modal ───────────────────────────────────────────────────── */
.prop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.prop-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dark .prop-modal {
  background: #1f2937;
}

.prop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.dark .prop-modal-header {
  border-bottom-color: #374151;
}

.prop-modal-body {
  padding: 24px;
}

.prop-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.dark .prop-modal-footer {
  border-top-color: #374151;
  background: #111827;
}

/* ── Formular-Sektionen ──────────────────────────────────────── */
.prop-form-section {
  margin-bottom: 24px;
}

.prop-form-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

.dark .prop-form-section-title {
  color: #9ca3af;
  border-bottom-color: #374151;
}

/* ── Platzhalter-Seiten (leere Tabs) ─────────────────────────── */
.prop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #9ca3af;
  text-align: center;
  gap: 12px;
}

.prop-placeholder svg {
  opacity: 0.3;
}

/* ── Kennzahl-Karten (Dashboard) ─────────────────────────────── */
.prop-kpi-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dark .prop-kpi-card {
  background: #1f2937;
}

.prop-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.prop-kpi-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
}

.dark .prop-kpi-label {
  color: #9ca3af;
}
