/* ============================================================
   OBSTACLE EDIT DIALOG — E95674 / 9E53E4 Dark Theme
============================================================ */

.obstacle-edit-dialog {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Dialog shell */
.dialog-content {
  position: relative;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  min-width: 300px;
  max-width: 420px;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  animation: dialogFadeIn 130ms ease-out;
}

/* Gradient accent line at top */
.dialog-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E95674, #9E53E4);
  border-radius: 4px 4px 0 0;
}

/* Header */
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #1e1e1e;
}

.dialog-header h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
}

/* Close button */
.btn-close {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: none;
  border: 1px solid transparent;
  color: #444;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.btn-close:hover {
  background: rgba(233,86,116,0.08) !important;
  border-color: rgba(233,86,116,0.25);
  color: #E95674 !important;
}

/* Body */
.dialog-body {
  padding: 14px;
}

/* Field rows */
.dialog-field {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.field-label {
  font-size: 11px;
  color: #505050;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-value {
  font-size: 11px;
  color: #9E53E4;
  font-family: 'IBM Plex Mono', monospace;
  opacity: 0.7;
}

.form-group {
  margin: 10px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: #606060;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
  font-family: 'Syne', sans-serif;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: #111;
  border: 1px solid #222;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.checkbox-label:hover {
  background: #151515;
  border-color: #9E53E4;
}

.checkbox-label input {
  width: 13px;
  height: 13px;
  accent-color: #9E53E4;
}

.checkbox-label span {
  font-size: 12px;
  font-weight: 500;
  color: #d0d0d0;
  font-family: 'Syne', sans-serif;
}

.checkbox-label.disabled,
.checkbox-label:has(input:disabled) {
  opacity: 0.35;
  cursor: not-allowed;
  background: #0d0d0d;
  border-color: #1a1a1a;
}

.checkbox-label.disabled:hover,
.checkbox-label:has(input:disabled):hover {
  background: #0d0d0d;
  border-color: #1a1a1a;
}

/* Delete button (hold-to-confirm) */
.btn-delete {
  position: relative;
  width: 100%;
  padding: 7px 12px;
  background: rgba(233,86,116,0.06);
  border: 1px solid rgba(233,86,116,0.2);
  border-radius: 3px;
  color: #E95674;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-delete .hold-bar {
  position: absolute;
  inset: 0;
  background: rgba(233, 86, 116, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
  z-index: 0;
}

.btn-delete .label {
  position: relative;
  z-index: 1;
}

.btn-delete.holding .hold-bar {
  transform: scaleX(1);
  transition: transform 2s linear;
}

.btn-delete:hover {
  background: rgba(233,86,116,0.12) !important;
  border-color: rgba(233,86,116,0.4) !important;
}

/* Move button */
.btn-move {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  background: rgba(158,83,228,0.06) !important;
  border: 1px solid rgba(158,83,228,0.2);
  border-radius: 3px;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: all 0.12s ease;
}

.btn-move:hover {
  background: rgba(158,83,228,0.12) !important;
  border-color: rgba(158,83,228,0.4) !important;
  color: #fff;
}

/* Footer */
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #1e1e1e;
}

.dialog-actions button {
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  background: #141414;
  color: #909090;
  border: 1px solid #2a2a2a;
  transition: all 0.12s ease;
}

.dialog-actions button:hover {
  background: #1a1a1a;
  border-color: #333;
  color: #c0c0c0;
}

/* Save (primary) */
.btn-save {
  background: linear-gradient(135deg, #E95674, #9E53E4) !important;
  border: none !important;
  color: #fff !important;
}

.btn-save:hover:not(:disabled) {
  opacity: 0.85;
  box-shadow: 0 4px 18px rgba(233,86,116,0.3);
}

/* Cancel */
.btn-cancel:hover:not(:disabled) {
  background: #1a1a1a;
  border-color: #333;
}

/* Entrance */
@keyframes dialogFadeIn {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   PARKING BAY EXTENSIONS
============================================================ */

.edit-dialog .dialog-content { max-width: 440px; }

.edit-dialog .info-text,
.edit-dialog .warning-text {
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 3px;
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
}

.edit-dialog .info-text {
  background: rgba(158,83,228,0.06);
  border: 1px solid rgba(158,83,228,0.2);
  color: #9E53E4;
}

.edit-dialog .warning-text {
  background: rgba(233,86,116,0.06);
  border: 1px solid rgba(233,86,116,0.2);
  color: #E95674;
}

/* Select */
.edit-dialog select {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 12px;
  color: #d0d0d0;
  cursor: pointer;
  width: 100%;
  outline: none;
  transition: border-color 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.edit-dialog select:hover { border-color: #9E53E4; }

.edit-dialog select:focus {
  border-color: #9E53E4;
  box-shadow: 0 0 0 1px rgba(158,83,228,0.3);
}

.edit-dialog select:disabled { opacity: 0.4; cursor: not-allowed; }

/* Number input */
.edit-dialog input[type="number"] {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: #d0d0d0;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.edit-dialog input[type="number"]:hover { border-color: #9E53E4; }

.edit-dialog input[type="number"]:focus {
  border-color: #9E53E4;
  box-shadow: 0 0 0 1px rgba(158,83,228,0.3);
}

.edit-dialog input[type="number"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.edit-dialog input[type="number"]::-webkit-inner-spin-button,
.edit-dialog input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.edit-dialog input[type="number"] { -moz-appearance: textfield; }