#admin-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 13px;
  font-family: Inter, sans-serif;
}

#admin-bar span { font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

#admin-logout-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #cbd5e1;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

#admin-logout-btn:hover { background: #334155; }

/* Editable element highlight */
[contenteditable="true"] {
  outline: 2px dashed rgba(59, 130, 246, 0.5);
  border-radius: 3px;
  cursor: text;
  min-width: 4px;
}

[contenteditable="true"]:focus {
  outline: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.admin-saved-tip {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #22c55e;
  font-family: Inter, sans-serif;
  animation: admin-fade 1.8s ease forwards;
}

@keyframes admin-fade {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Modal */
#admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 32px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: Inter, sans-serif;
}

.admin-modal-box h2 {
  margin: 0;
  font-size: 18px;
  color: #f1f5f9;
  font-weight: 600;
}

#admin-pw-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

#admin-pw-input:focus { border-color: #3b82f6; }

#admin-pw-error {
  font-size: 13px;
  color: #f87171;
  min-height: 18px;
}

.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.admin-modal-actions button {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: Inter, sans-serif;
}

#admin-login-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
}

#admin-login-btn:hover { background: #2563eb; }

#admin-cancel-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
}

#admin-cancel-btn:hover { background: #1e293b; }

/* Hidden admin trigger in footer */
#admin-trigger {
  opacity: 0.18;
  font-size: 11px;
  color: #94a3b8;
  text-decoration: none;
}
