/* ============================================================
   oioahta3ep — admin editor styles (minimalist)
   ============================================================ */

/* Footer trigger */
.admin-trigger {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.8rem;
  color: var(--text-mute, #6e7880);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--border-strong, #3c444c);
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.admin-trigger:hover { color: var(--green, #008080); }

/* Overlay / modal */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 10, 12, 0.7);
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-modal {
  width: min(380px, 100%);
  background: var(--card, #1c2126);
  border: 1px solid var(--border-strong, #3c444c);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.admin-modal__title { font-size: 1.15rem; margin-bottom: 6px; color: var(--text, #e6eaed); }
.admin-modal__hint { font-size: 0.85rem; color: var(--text-mute, #6e7880); margin-bottom: 16px; }
.admin-modal__error { color: #e57373; font-size: 0.85rem; margin: 8px 0 0; }
.admin-modal__row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.admin-modal--wide { width: min(520px, 100%); }

/* Add-item button + dropdown (lives in the panel footer) */
.admin-addbar {
  position: relative;
  display: inline-block;
}
.admin-btn--add {
  border-color: var(--border-strong, #3c444c);
  color: var(--text-dim, #98a2aa);
}
.admin-btn--add:hover { background: transparent; color: var(--text, #e6eaed); border-color: var(--green, #008080); }
.admin-addmenu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--bg, #14181c);
  border: 1px solid var(--border-strong, #3c444c);
  border-radius: 4px;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: none;
  z-index: 30;
}
.admin-addmenu.open { display: block; }
.admin-addmenu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--text, #e6eaed);
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.admin-addmenu__item:hover { background: var(--green, #008080); color: #0b0e11; }

/* Profile photo */
.admin-photo__preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border-strong, #3c444c);
  display: block;
}
.admin-photo__row { display: flex; gap: 10px; margin-top: 10px; }

/* Inputs */
.admin-input {
  width: 100%;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text, #e6eaed);
  background: var(--bg, #14181c);
  border: 1px solid var(--border-strong, #3c444c);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s ease;
}
.admin-input:focus { border-color: var(--green, #008080); }
textarea.admin-input { resize: vertical; min-height: 70px; line-height: 1.5; }

/* Hide the up/down arrows on number inputs (Level % etc.) — not needed */
.admin-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.admin-input[type="number"]::-webkit-outer-spin-button,
.admin-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Panel */
.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: min(480px, 100vw);
  height: 100vh;
  background: var(--card, #1c2126);
  border-left: 1px solid var(--border-strong, #3c444c);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.45);
}
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #31383f);
  flex-shrink: 0;
}
.admin-panel__title { font-size: 1.05rem; color: var(--text, #e6eaed); }
.admin-panel__close {
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid var(--border-strong, #3c444c);
  border-radius: 3px;
  color: var(--text-dim, #98a2aa);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.admin-panel__close:hover { color: var(--text, #e6eaed); border-color: var(--green, #008080); }

.admin-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
}

.admin-group { margin-bottom: 22px; }
.admin-group__title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green, #008080);
  border-bottom: 1px solid var(--border, #31383f);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.admin-field { margin-bottom: 12px; }
.admin-field__label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim, #98a2aa);
  margin-bottom: 5px;
}

.admin-panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border, #31383f);
  flex-shrink: 0;
}
.admin-btn { padding: 9px 14px; font-size: 0.78rem; }
.admin-btn--primary { background: var(--green, #008080); color: #0b0e11; border-color: var(--green, #008080); }
.admin-btn--primary:hover { background: #0b0e11; color: var(--green, #008080); }
.admin-btn--ghost { border-color: var(--border-strong, #3c444c); color: var(--text-dim, #98a2aa); }
.admin-btn--ghost:hover { background: transparent; color: var(--text, #e6eaed); border-color: var(--green, #008080); }

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1100;
  background: var(--card, #1c2126);
  border: 1px solid var(--green, #008080);
  color: var(--text, #e6eaed);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
