/* ==========================================================================
   OBSTACLE EDIT DIALOG — COMPACT DARK
========================================================================== */

.obstacle-edit-dialog {
  position: absolute;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.493);
  backdrop-filter: blur(5px);
}

/* Dialog shell */
.dialog-content {
  position: relative;
  background: #121418;
  border: 1px solid #2f333a;
  border-radius: 4px;
  min-width: 300px;
  max-width: 420px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  animation: dialogFadeIn 140ms ease-out;
}

/* Header */
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #2a2e36;
}

.dialog-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e8ecf2;
  letter-spacing: 0.2px;
}

/* Close button */
.btn-close {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: none;
  border: none;
  color: #8b93a2;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, color 120ms ease;
}

.btn-close:hover {
  background: #1f2430 !important;
  color: #ffffff !important;
}

/* Body */
.dialog-body {
  padding: 14px;
}

/* Field rows */
.dialog-field {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.field-label {
  font-size: 12px;
  color: #8f96a3;
}

.field-value {
  font-size: 12px;
  color: #9999998c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.form-group {
  margin: 10px 0px;
  display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 500;
  color: #9aa4b2;
  letter-spacing: 0.4px;
  text-transform: none;
  user-select: none;
}


/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: #181b21;
  border: 1px solid #303540;
  border-radius: 4px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.checkbox-label:hover {
  background: #1d2230;
  border-color: #3b82f6;
}

.checkbox-label input {
  width: 14px;
  height: 14px;
}

.checkbox-label span {
  font-size: 12px;
  font-weight: 500;
  color: #e1e6ee;
}

.checkbox-label.disabled,
.checkbox-label:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
  background: #14171c;
  border-color: #23272f;
}

.checkbox-label.disabled:hover,
.checkbox-label:has(input:disabled):hover {
  background: #14171c;
  border-color: #23272f;
  box-shadow: none;
}


/* Delete (subtle danger) */
.btn-delete {
  position: relative;
  width: 100%;
  padding: 7px 12px;
  background: #1a0f12;
  border: 1px solid #402027;
  border-radius: 4px;
  color: #ff7b7b;
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.btn-move {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  background: #0f181a !important;
  border: 1px solid #402027;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.btn-move:hover {
  background: #142124 !important;
  border-color: #315e70 !important;
}

/* progress bar */
.btn-delete .hold-bar {
  position: absolute;
  inset: 0;
  background: rgba(255, 60, 60, 0.35);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
  z-index: 0;
}

/* text above bar */
.btn-delete .label {
  position: relative;
  z-index: 1;
}

.btn-delete.holding .hold-bar {
  transform: scaleX(1);
  transition: transform 2s linear;
}

.btn-delete:hover {
  background: #241418 !important;
  border-color: #70313b !important;
}

/* Footer */
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #2a2e36;
}

/* Buttons */
.dialog-actions button {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #181b21;
  color: #e5e9f0;
  border: 1px solid #303540;
  transition: background 120ms ease, border-color 120ms ease;
}

.dialog-actions button:hover {
  background: #1f2430;
  border-color: #3a404d;
}

.btn-save {
  background: linear-gradient(135deg, #4a9eff, #3a8eef);
  border-color: #2563eb;
  color: #ffffff;
}

.btn-save:hover {
  background: linear-gradient(135deg, #3e86d8, #2f73c2);
}

.btn-save:hover:not(:disabled) {
  background: linear-gradient(135deg, #3e86d8 0%, #2f73c2 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* Cancel / Secondary */
.btn-cancel:hover:not(:disabled) {
  background: #20242d;
  border-color: #444b5c;
}

/* Entrance */
@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}








/* =========================================================
   PARKING BAY – EXTENSIONS (reuses obstacle dialog)
========================================================= */

.edit-dialog .dialog-content {
  max-width: 440px;
}

/* Info & warning text */
.edit-dialog .info-text,
.edit-dialog .warning-text {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  margin-top: 6px;
}

.edit-dialog .info-text {
  background: #151a23;
  border: 1px solid #2b3342;
  color: #9fb3ff;
}

.edit-dialog .warning-text {
  background: #1a1414;
  border: 1px solid #402626;
  color: #ff9a9a;
}

/* Select (inherits obstacle button tone) */
.edit-dialog select {
  background: #181b21;
  border: 1px solid #303540;
  border-radius: 4px;
  padding: 7px 30px 7px 10px;
  font-size: 12px;
  color: #e6edf5;
  cursor: pointer;
}

.edit-dialog select:hover {
  border-color: #3b82f6;
}

.edit-dialog select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Select arrow */
.edit-dialog select {
  background-size: 6px 6px;
  background-repeat: no-repeat;
  width: 100%;
}


/* Number input */
.edit-dialog input[type="number"] {
  background: #181b21;
  border: 1px solid #303540;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  color: #e6edf5;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.edit-dialog input[type="number"]:hover {
  border-color: #3b82f6;
}

.edit-dialog input[type="number"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
}

/* Disabled */
.edit-dialog input[type="number"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #14171c;
}

.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; /* Firefox */
}
