/* admin.css — control panel */
:root {
  --yellow: #f5d020;
  --dark: #070d1b;
  --panel: #0d1424;
  --panel2: #111a2e;
  --line: #1e2a44;
  --text: #c9d2e3;
  --muted: #7e8ba3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--dark); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 14px; }
a { color: var(--yellow); }

/* layout */
.adm-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 4px;
}
.adm-logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.adm-logo img { height: 34px; }
.adm-logo span { font-weight: 700; color: #fff; font-size: 16px; letter-spacing: 1px; }
.adm-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.adm-side nav a {
  color: var(--text); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: 13px;
}
.adm-side nav a:hover { background: var(--panel2); color: #fff; }
.adm-side nav a.active { background: var(--panel2); color: var(--yellow); }
.adm-view-site { text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 13px; }
.adm-view-site:hover { border-color: var(--yellow); }

.adm-main { margin-left: 240px; padding: 0 28px 80px; }
.adm-topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(7,13,27,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.adm-topbar h1 { font-size: 18px; color: #fff; margin: 0; }
.adm-status { color: var(--muted); font-size: 12px; }
.adm-status.ok { color: #2ecc71; }
.adm-status.err { color: #ff6b6b; }

/* cards */
.adm-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin-bottom: 26px; max-width: 900px;
}
.adm-card h2 { font-size: 16px; color: #fff; margin: 0 0 16px; }
.adm-card h3 { font-size: 13px; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; margin: 26px 0 12px; }
.adm-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: -6px 0 16px; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* fields */
.adm-f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.adm-f .hint { font-size: 11px; opacity: .8; }
.adm-f input, .adm-f textarea, .adm-f select {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
  color: #fff; padding: 9px 11px; font-size: 13px; font-family: inherit; outline: none; width: 100%;
}
.adm-f input:focus, .adm-f textarea:focus, .adm-f select:focus { border-color: var(--yellow); }
.adm-f textarea { resize: vertical; }

/* rows (repeatable list items) */
.adm-item {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 12px; position: relative;
}
.adm-item .adm-grid { margin-bottom: 6px; }
.adm-item-tools { display: flex; gap: 8px; margin-top: 6px; }
.adm-tool {
  border: none; cursor: pointer; border-radius: 6px; padding: 5px 10px; font-size: 12px;
  background: #1a2440; color: var(--text);
}
.adm-tool:hover { background: #243156; color: #fff; }
.adm-tool.danger:hover { background: #57202b; color: #ff9aa2; }

/* buttons */
.adm-btn {
  border: none; cursor: pointer; border-radius: 8px; padding: 9px 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
}
.adm-btn.save { background: var(--yellow); color: #070d1b; margin-top: 10px; }
.adm-btn.save:hover { filter: brightness(1.08); }
.adm-btn.add { background: transparent; border: 1px dashed #2c3a5e; color: var(--muted); margin-top: 4px; }
.adm-btn.add:hover { color: var(--yellow); border-color: var(--yellow); }

/* media upload widget */
.adm-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 14px; }
.adm-media { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 250px; }
.adm-media .label { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .6px; }
.adm-media img, .adm-media video {
  width: 100%; height: 120px; object-fit: cover; border-radius: 8px; background: #000; margin-bottom: 8px;
}
.adm-media input[type="text"] {
  width: 100%; background: #0d1424; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-size: 11px; padding: 7px 8px; margin-bottom: 8px; outline: none;
}
.adm-media .upload-btn { width: 100%; background: #1a2440; color: var(--text); border: none; border-radius: 6px; padding: 8px; font-size: 12px; cursor: pointer; }
.adm-media .upload-btn:hover { color: var(--yellow); }
.adm-media .progress { font-size: 11px; color: var(--yellow); margin-top: 6px; }

/* static-host banner */
.adm-static-banner {
  background: #2b230c; border: 1px solid #6b5514; color: #f0dc9a;
  border-radius: 12px; padding: 16px 18px; margin-bottom: 24px;
  max-width: 900px; font-size: 13px; line-height: 1.65;
}
.adm-static-banner code {
  background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 4px; font-size: 12px;
}
.adm-static-banner .adm-btn { display: block; margin-top: 12px; }

/* batch upload */
.adm-batch {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 16px;
}

/* toast */
.adm-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: #0e2b1c; color: #7ee2a8; border: 1px solid #1d5c3a;
  border-radius: 10px; padding: 12px 18px; font-size: 13px;
  opacity: 0; transform: translateY(10px); transition: all .3s; pointer-events: none;
}
.adm-toast.show { opacity: 1; transform: translateY(0); }
.adm-toast.error { background: #2e1116; color: #ff9aa2; border-color: #5c1d29; }

@media (max-width: 860px) {
  .adm-side { display: none; }
  .adm-main { margin-left: 0; padding: 0 14px 60px; }
}

/* ---------- section on/off switches ---------- */
.adm-note {
  margin: -6px 0 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #98a0b3;
  max-width: 760px;
}
.adm-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
}
.adm-toggle-label { display: flex; flex-direction: column; gap: 3px; }
.adm-toggle-label strong { font-size: 14.5px; font-weight: 600; color: #e8ebf2; }
.adm-toggle-label .hint { font-size: 12.5px; color: #8a93a6; }

.adm-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 0 0 auto; }
.adm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background .22s ease;
  flex: 0 0 auto;
}
.adm-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s ease;
}
.adm-switch input:checked + .adm-switch-track { background: #fec544; }
.adm-switch input:checked + .adm-switch-track .adm-switch-knob { transform: translateX(20px); }
.adm-switch input:focus-visible + .adm-switch-track { outline: 2px solid #fec544; outline-offset: 2px; }
.adm-switch-text { font-size: 12.5px; color: #98a0b3; min-width: 50px; }

/* sidebar "off" indicator */
#adm-nav a.is-off { opacity: .55; }
.adm-off-badge {
  margin-left: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #cfd4e0;
  vertical-align: middle;
}

/* ---------- skills 02 item chips ---------- */
.adm-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.adm-chip { position: relative; display: flex; align-items: center; }
.adm-chip input {
  width: 190px;
  padding: 8px 28px 8px 11px;
  font-size: 13.5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ebf2;
}
.adm-chip input:focus { outline: none; border-color: #fec544; }
.adm-chip-x {
  position: absolute;
  right: 6px;
  width: 18px;
  height: 18px;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cfd4e0;
  font-size: 14px;
  cursor: pointer;
}
.adm-chip-x:hover { background: #dc3545; color: #fff; }
.adm-btn.add.small { padding: 7px 13px; font-size: 13px; }
.adm-group { padding-bottom: 8px; }

@media (max-width: 600px) {
  .adm-toggle-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .adm-chip input { width: 100%; }
  .adm-chip { width: 100%; }
}

/* ---------- contact version chooser ---------- */
.adm-choice {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.adm-choice h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #e8ebf2;
}
.adm-radio {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 14px;
  color: #cfd4e0;
}
.adm-radio:hover { border-color: rgba(254, 197, 68, 0.45); }
.adm-radio input { accent-color: #fec544; width: 17px; height: 17px; flex: 0 0 auto; cursor: pointer; }
.adm-radio:has(input:checked) {
  border-color: #fec544;
  background: rgba(254, 197, 68, 0.07);
  color: #fff;
}
