/* admin/cms.css — панель и подсветка визуального редактора (только для админа) */
#cms-toolbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147483000;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  font: 13px/1.3 -apple-system, "Segoe UI", Roboto, sans-serif;
}
#cms-toolbar button,
#cms-toolbar a {
  padding: 6px 10px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
#cms-toolbar button:hover,
#cms-toolbar a:hover { background: #383838; }
#cms-toolbar #cms-toggle.on { background: #2f7d32; border-color: #2f7d32; }

body.cms-edit-mode .cms-hover {
  outline: 2px solid #4da3ff !important;
  outline-offset: 2px;
  cursor: pointer !important;
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.18) !important;
}

#cms-popup {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  z-index: 2147483001;
  width: min(440px, 92vw);
  padding: 14px;
  background: #181818;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  font: 13px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
}
#cms-popup .cms-popup-title { font-weight: 600; margin-bottom: 10px; color: #ddd; }
#cms-popup label { display: block; margin-bottom: 10px; font-size: 12px; color: #aaa; }
#cms-popup input,
#cms-popup textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0f0f0f;
  color: #fff;
  font: inherit;
}
#cms-popup textarea { resize: vertical; }
#cms-popup .cms-popup-status { min-height: 16px; margin-bottom: 8px; color: #f5a623; font-size: 12px; }
#cms-popup .cms-popup-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#cms-popup button {
  padding: 7px 12px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
#cms-popup button:disabled { opacity: 0.5; cursor: default; }
#cms-popup #cms-save { background: #2f7d32; border-color: #2f7d32; }
#cms-popup #cms-reset { background: #7d2f2f; border-color: #7d2f2f; }
