/* ==========================================================================
   DelightViewer - Well Management
   Create Well and Edit Well dialogs.
   Initial visibility stays in index.html.
   ========================================================================== */

.well-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.well-modal__panel {
  background: #0f172a;
  border: 2px solid #00f2fe;
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.25rem;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.35);
  box-sizing: border-box;
}

.well-modal--create .well-modal__panel {
  border-color: #10b981;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.35);
}

.well-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #1e293b;
}

.well-modal__title {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.well-modal__close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.well-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.well-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.well-form__label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.well-form__control {
  width: 100%;
  background: #090d16;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  outline: none;
  box-sizing: border-box;
}

.well-form__control--readonly {
  color: #94a3b8;
  cursor: not-allowed;
}

.well-form__control--path {
  color: #00f2fe;
  border-color: #00f2fe;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
}

.well-form__locked-note {
  color: #64748b;
  font-weight: 400;
}

.well-form__alert {
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.well-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.well-option {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.well-option--relink {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.well-option--simulated {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.well-option__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.well-option--relink .well-option__checkbox { accent-color: #00f2fe; }
.well-option--simulated .well-option__checkbox { accent-color: #f59e0b; }

.well-option__label {
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.well-option--relink .well-option__label { color: #38bdf8; }
.well-option--simulated .well-option__label { color: #fbbf24; }

.well-identifier {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.well-identifier__label {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.well-identifier__value {
  font-family: "JetBrains Mono", monospace;
  color: #00f2fe;
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.well-identifier__badge {
  font-size: 0.65rem;
  color: #64748b;
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid #334155;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
}

.well-button {
  border: none;
  cursor: pointer;
  font-weight: 800;
}

.well-button--create {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.well-button--cancel {
  background: #334155;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.well-button--save {
  background: linear-gradient(135deg, #2563eb, #00f2fe);
  color: #060911;
  border-radius: 6px;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}
