/* =========================================================
   📰 PUBLISHER STYLE v1.1 (🚧)
   [Discord Message Publisher Styles]
   ========================================================= */

/*🧠 Архітектура:
  🧠 CSS для Publisher модуля ADC
  🧠 Живе ВСЕРЕДИНІ .adc-workspace
  🧠 Layout, colors, fonts — з main-style-adc.css */

/*💡 Секції:
  💡 1. Layout & Structure
  💡 2. Base Components
  💡 3. Toggle Switch
  💡 4. Top Bar
  💡 5. Folders
  💡 6. Messages
  💡 7. Form Controls
  💡 8. Message Builder
  💡 9. Context Menu
  💡 10. Formatting Tooltip
  💡 11. Modal Windows
  💡 12. Toast Notifications (v1.1)
  💡 13. Autosave Indicator (v1.1)
  💡 14. Responsive */


/* ╔═══════════════════════════════════════════════════════════╗
   ║  📦 1. LAYOUT & STRUCTURE                                  ║
   ║  Основна структура та сіткові системи                      ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Кореневий контейнер ────────── */

.adc-publisher {
  padding: 0;
}

/* ────────── Основна сітка модуля ────────── */

.adc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.adc-full-width {
  grid-column: 1 / -1;
}

/* ────────── Робочі колонки модуля ────────── */

.publisher-left-stack,
.publisher-right-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.publisher-left-stack {
  grid-column: 1 / 2;
}

.publisher-right-stack {
  grid-column: 2 / 3;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  🧱 2. BASE COMPONENTS                                     ║
   ║  Базові контейнери та заголовки                            ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Базовий контейнер адмін-блоків ────────── */

.admin-section {
  background: var(--bg-soft);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 20px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.admin-section h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ────────── Уніфікований заголовок блоків ────────── */

.adc-section-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.publisher-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  white-space: nowrap;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  ⚙️ 3. TOGGLE SWITCH                                      ║
   ║  Перемикач стану модуля (On/Off)                          ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Обгортка тумблера ────────── */

.adc-neon-toggle {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.adc-neon-toggle input {
  display: none;
}

/* ────────── Доріжка тумблера ────────── */

.adc-neon-track {
  position: relative;
  width: 92px;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b0f1a, #05080f);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    inset 0 4px 10px rgba(0,0,0,.9),
    0 8px 20px rgba(0,0,0,.7);
  overflow: hidden;
}

/* ────────── Текст ON ────────── */

.adc-neon-text {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .2em;
  color: #00000075;
  opacity: 0;
  pointer-events: none;
}

/* ────────── Бігунок тумблера ────────── */

.adc-neon-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff,
    #d9f7f2 45%,
    #9fded4 100%
  );
  box-shadow:
    0 6px 14px rgba(0,0,0,.85),
    inset 0 2px 6px rgba(255,255,255,.9);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

/* ────────── Увімкнений стан ────────── */

.adc-neon-toggle input:checked + .adc-neon-track {
  background: linear-gradient(90deg, #4dffd8, #2fffc3, #19e6a8);
  box-shadow:
    0 0 10px rgba(46,204,113,.55),
    0 0 22px rgba(46,204,113,.35),
    inset 0 0 10px rgba(255,255,255,.25);
}

.adc-neon-toggle input:checked + .adc-neon-track .adc-neon-thumb {
  left: calc(100% - 34px);
}

.adc-neon-toggle input:checked + .adc-neon-track .adc-neon-text {
  opacity: 1;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  📂 4. TOP BAR                                            ║
   ║  Верхня панель зі статусом та папками                     ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Контейнер верхньої панелі ────────── */

.publisher-top-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.035);
  border-radius: 18px;
  min-width: 0;
}

/* ────────── Блок статусу модуля ────────── */

.publisher-status-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.publisher-status-block,
.publisher-folders-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.publisher-status-block .publisher-title,
.publisher-folders-block .publisher-title {
  height: 20px;
  line-height: 20px;
  display: flex;
  align-items: center;
}

.publisher-status-block .publisher-title {
  justify-content: flex-start;
  text-align: left;
}

.publisher-folders-block .publisher-title {
  justify-content: center;
  text-align: center;
}

/* ────────── Блок каталогу папок ────────── */

.publisher-folders-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  📁 5. FOLDERS                                            ║
   ║  Смуга папок з горизонтальним скролом                     ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Контейнер смуги папок ────────── */

.publisher-folders-area {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.folders-add {
  flex-shrink: 0;
}

.folders-strip {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ────────── Скрол папок ────────── */

.folders-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible; /* ✅ Дозволяє папкам виходити за межі */
  padding: 8px 0; /* Додатковий padding для hover анімації */
  margin: 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 92, 255, 0.6) rgba(255,255,255,0.08);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}

.folders-scroll::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.folders-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  margin: 0 20px;
}

.folders-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.6), rgba(155, 92, 255, 0.6));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.folders-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.8), rgba(155, 92, 255, 0.8));
  background-clip: padding-box;
}

/* ────────── Внутрішній контейнер папок ────────── */

.folders-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
  padding: 4px; /* ✅ ДОДАТИ для hover анімації */
  min-width: min-content;
}

.folders-inner:has(.folder-item:only-child),
.folders-inner:has(.folder-item:first-child:nth-last-child(-n+3)) {
  justify-content: flex-start;
  width: 100%;
}

/* ────────── Картка папки ────────── */

.folder-item {
  position: relative;
  flex: 0 0 auto;
  min-width: 180px !important;
  max-width: 220px !important;
  height: 90px !important;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #1e2230, #191c26);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  user-select: none;
  transform-origin: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}

.folder-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.15), rgba(155, 92, 255, 0.15));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.folder-item:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 92, 255, 0.4);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.3),
    0 0 0 1px rgba(109, 92, 255, 0.2);
}

.folder-item:hover::after {
  opacity: 1;
}

.folder-item:active {
  transform: scale(0.95);
  transition-duration: .08s;
}

.folder-item:focus-visible {
  box-shadow:
    0 0 0 2px rgba(155,92,255,0.7),
    0 22px 44px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.folder-item.active {
  border-color: #6d5cff;
  box-shadow: 
    0 8px 24px rgba(109, 92, 255, 0.3),
    0 0 0 2px rgba(109, 92, 255, 0.4),
    inset 0 0 16px rgba(109, 92, 255, 0.1);
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.12), rgba(155, 92, 255, 0.12));
}

.folder-item.active::after {
  opacity: 0;
}

/* ────────── Вміст папки ────────── */

.folder-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.folder-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.folder-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e7e9f0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1;
}

.folder-channel {
  font-size: 11px;
  font-weight: 500;
  color: #9ba3b8;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

/* ────────── Кнопка додавання папки ────────── */

.ui-add-folder {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--blue);
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition:
    background .2s ease,
    box-shadow .2s ease,
    transform .12s ease;
}

.ui-add-folder .plus {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.ui-add-folder:hover {
  background: linear-gradient(180deg, rgba(155,92,255,0.18), rgba(155,92,255,0.06));
  box-shadow:
    0 10px 22px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
  color: var(--purple);
}

.ui-add-folder:active {
  transform: scale(0.95);
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  📄 6. MESSAGES                                           ║
   ║  Картки повідомлень та кнопка додавання                   ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Контейнер повідомлень ────────── */

.publisher-messages-inline {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0;
}

.publisher-messages-cards {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  padding-bottom: 6px;
  min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}

.publisher-messages-cards::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.publisher-messages-cards::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  margin: 4px;
}

.publisher-messages-cards::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.4), rgba(155, 92, 255, 0.4));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.publisher-messages-cards::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.6), rgba(155, 92, 255, 0.6));
  background-clip: padding-box;
}

/* ────────── Empty State для повідомлень (v1.1) ────────── */

.messages-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: #7983a0;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.messages-empty .empty-icon {
  font-size: 32px;
  opacity: 0.6;
}

.messages-empty .empty-text {
  font-weight: 500;
}

/* ────────── Кнопка додавання повідомлення (Centered) ────────── */

.ui-add-message-centered {
  min-width: 200px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.08), rgba(155, 92, 255, 0.08));
  border: 2px dashed rgba(109, 92, 255, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.ui-add-message-centered:hover {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.15), rgba(155, 92, 255, 0.15));
  border-color: rgba(109, 92, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 92, 255, 0.3);
}

.ui-add-message-centered .plus {
  font-size: 42px;
  font-weight: 300;
  color: #9b5cff;
  line-height: 1;
}

.ui-add-message-centered .add-text {
  font-size: 13px;
  font-weight: 600;
  color: #b5bac9;
  letter-spacing: 0.5px;
}

.ui-add-message {
  display: none !important;
}

/* ────────── Картка повідомлення ────────── */

.message-paper {
  position: relative;
  flex: 0 0 auto;
  min-width: 200px;
  width: 250px;
  height: 160px;
  padding: 16px;
  background: linear-gradient(135deg, #1e2230, #191c26);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.message-paper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, transparent);
  mask-image: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.message-paper:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 92, 255, 0.5);
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(109, 92, 255, 0.2);
}

.message-paper:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.3), rgba(155, 92, 255, 0.3));
}

.message-paper.active {
  border-color: #6d5cff;
  box-shadow: 
    0 12px 32px rgba(109, 92, 255, 0.35),
    0 0 0 2px rgba(109, 92, 255, 0.4),
    inset 0 0 20px rgba(109, 92, 255, 0.1);
  transform: translateY(-2px);
}

/* ────────── Архів (v1.1) ────────── */

/* Стилі для заархівованих повідомлень */
.message-paper.archived {
  opacity: 0.5;
  background: linear-gradient(135deg, 
    rgba(100, 100, 100, 0.15), 
    rgba(80, 80, 80, 0.15));
  border-color: rgba(255,255,255,0.05);
}

.message-paper.archived .message-paper-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.message-paper.archived:hover {
  opacity: 0.7;
}

.message-paper-status.archived {
  background: rgba(150, 150, 150, 0.2);
  color: #888;
}

/* ────────── Drag & Drop States (v1.1) ────────── */

.message-paper.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.message-paper.drag-over {
  border-color: #9b5cff;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.15), rgba(109, 92, 255, 0.15));
  box-shadow: 
    0 0 0 2px rgba(155, 92, 255, 0.5),
    0 8px 24px rgba(155, 92, 255, 0.3);
}

/* ────────── Вміст картки повідомлення ────────── */

.message-paper-header {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.message-paper-title {
  font-size: 14px;
  font-weight: 600;
  color: #e7e9f0;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* ────────── Статус повідомлення ────────── */

.message-paper-status {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  text-transform: none !important;
  background: rgba(0,0,0,0.35);
  color: var(--text-muted);
  pointer-events: none;
}

.message-paper-status .status-icon {
  font-size: 12px;
}

.message-paper-status .status-text {
  font-size: 11px;
}

.message-paper-status.draft {
  background: rgb(105 79 0) !important;
  color: #ffbf00 !important;
  border: 1px solid rgb(255 193 7) !important;
}

.message-paper-status.published {
  background: rgb(16 48 17 / 75%) !important;
  color: #00ff0a !important;
  border: 1px solid rgb(0 255 10) !important;
}

.message-paper-status.archived {
  background: rgba(158, 158, 158, 0.15) !important;
  color: #9e9e9e !important;
  border: 1px solid rgba(158, 158, 158, 0.3) !important;
}

.message-paper-status.deleted {
  background: rgb(98 6 0) !important;
  color: #ff1100 !important;
  border: 1px solid rgb(255 17 0) !important;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  ✍️ 7. FORM CONTROLS                                      ║
   ║  Поля вводу, textarea, кнопки                             ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Input / Textarea ────────── */

.adc-input,
.adc-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #0b0d12;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}

.adc-input:focus,
.adc-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(88,101,242,.25);
}

.adc-textarea {
  resize: vertical;
}

/* ────────── Кнопки ────────── */

.adc-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  background: linear-gradient(135deg, #6d5cff, #9b5cff);
  color: #fff;
  box-shadow: 
    0 4px 12px rgba(109, 92, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
}

.adc-primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.adc-primary-btn:hover::before {
  opacity: 1;
}

.adc-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(109, 92, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.adc-primary-btn:active {
  transform: translateY(0);
}

.adc-primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #444, #555);
}

.adc-primary-btn:disabled::before {
  display: none;
}

.adc-primary-btn .btn-icon,
.adc-secondary-btn .btn-icon {
  font-size: 16px;
}

.adc-primary-btn .btn-text,
.adc-secondary-btn .btn-text {
  font-size: 14px;
}

/* ────────── Secondary Button (v1.1) ────────── */

.adc-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(109, 92, 255, 0.3);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: rgba(109, 92, 255, 0.1);
  color: #b5bac9;
  transition: all 0.25s ease;
}

.adc-secondary-btn:hover {
  background: rgba(109, 92, 255, 0.18);
  border-color: rgba(109, 92, 255, 0.5);
  color: #e7e9f0;
  transform: translateY(-1px);
}

.adc-secondary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ────────── Danger Button ────────── */

.adc-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 80, 80, 0.3);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: rgba(255, 80, 80, 0.1);
  color: #ff5050;
  transition: all 0.25s ease;
}

.adc-danger-btn:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.5);
  color: #ff3030;
}

/* ────────── Soft Button ────────── */

.adc-soft-btn {
  width: 100%;
  padding: 10px 16px;
  background: rgba(109, 92, 255, 0.1);
  border: 1px solid rgba(109, 92, 255, 0.3);
  border-radius: 10px;
  color: #9b5cff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.adc-soft-btn:hover {
  background: rgba(109, 92, 255, 0.18);
  border-color: rgba(109, 92, 255, 0.5);
  transform: translateY(-1px);
}

.adc-soft-btn:active {
  transform: translateY(0);
}

/* ────────── Checkbox ────────── */

.inline-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(109, 92, 255, 0.05);
  border: 1px solid rgba(109, 92, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
  color: #b5bac9;
  transition: all 0.2s ease;
}

.inline-checkbox:hover {
  background: rgba(109, 92, 255, 0.1);
  border-color: rgba(109, 92, 255, 0.3);
  color: #e7e9f0;
}

.inline-checkbox input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(109, 92, 255, 0.4);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.inline-checkbox input[type="checkbox"]:hover {
  border-color: rgba(109, 92, 255, 0.7);
  background: rgba(109, 92, 255, 0.1);
}

.inline-checkbox input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #6d5cff, #9b5cff);
  border-color: #6d5cff;
}

.inline-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ────────── Field Limit Hint (v1.1) ────────── */

.field-limit-hint {
  font-size: 10px;
  font-weight: 500;
  color: #7983a0;
  margin-left: 8px;
  opacity: 0.8;
}

/* ────────── Char Count ────────── */

.adc-char-count {
  margin-top: 6px;
  font-size: 11px;
  color: #7983a0;
  text-align: right;
}

.adc-char-count .over-limit {
  color: #ff5050;
  font-weight: 600;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  🧱 8. MESSAGE BUILDER                                    ║
   ║  Редактор повідомлень та превʼю Discord                   ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ────────── Основна сітка ────────── */

.adc-message-builder {
  margin-top: 24px;
}

.message-builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* ────────── Редактор (ліва частина) ────────── */

.message-editor {
  z-index: 20;
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.editor-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.9;
}

.editor-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editor-block label {
  position: relative;
  z-index: 50;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 14px;
  align-items: end;
}

.editor-row .editor-block {
  margin-bottom: 0;
}

/* ────────── Embed fields ────────── */

.embed-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embed-field-row {
  position: relative;
  padding: 16px;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.03), rgba(155, 92, 255, 0.03));
  border: 1px solid rgba(109, 92, 255, 0.15);
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.embed-field-row:hover {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.06), rgba(155, 92, 255, 0.06));
  border-color: rgba(109, 92, 255, 0.3);
  box-shadow: 0 4px 12px rgba(109, 92, 255, 0.15);
}

.field-header,
.button-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.field-number,
.button-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #9b5cff;
  background: rgba(109, 92, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
}

.button-number {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.15);
}

/* ────────── Fields Empty State (v1.1) ────────── */

.fields-empty,
.buttons-empty {
  padding: 20px;
  text-align: center;
  color: #7983a0;
  font-size: 13px;
  font-style: italic;
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.08);
}

/* ────────── Remove Buttons ────────── */

.field-remove,
.button-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  color: #ff5050;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.field-remove:hover,
.button-remove:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.5);
  color: #ff3030;
  transform: scale(1.1) rotate(90deg);
}

/* ────────── Message buttons ────────── */

.message-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-button-row {
  position: relative;
  padding: 16px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.03), rgba(109, 92, 255, 0.03));
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.message-button-row:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.06), rgba(109, 92, 255, 0.06));
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.15);
}

/* ────────── Editor actions ────────── */

.editor-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(109, 92, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.editor-hint {
  font-size: 12px;
  color: #7983a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-buttons {
  display: flex;
  gap: 12px;
}

/* ────────── Preview (права частина) ────────── */

.message-preview {
  z-index: 10;
  position: sticky;
  top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 34, 48, 0.6), rgba(25, 28, 38, 0.6));
  border: 1px solid rgba(109, 92, 255, 0.2);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #e7e9f0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(109, 92, 255, 0.15);
}

/* ────────── Discord Preview ────────── */

.discord-preview {
  flex: 1;
  min-height: 280px;
  max-height: 600px;
  padding: 20px;
  border-radius: 14px;
  background: #313338;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.discord-preview::-webkit-scrollbar {
  width: 6px;
}

.discord-preview::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.discord-preview::-webkit-scrollbar-thumb {
  background: rgba(109, 92, 255, 0.4);
  border-radius: 6px;
}

.discord-message {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: #dcddde;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ────────── Discord Embed ────────── */

.discord-embed {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  background: #2b2d31;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

.discord-embed:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.embed-color {
  width: 4px;
  background: #5865f2;
  flex-shrink: 0;
}

.embed-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.embed-title {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.3;
}

.embed-description {
  font-size: 14px;
  color: #dbdee1;
  line-height: 1.5;
}

/* ────────── Preview Fields ────────── */

.embed-fields-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.embed-fields-preview:has(.preview-field.inline) {
  grid-template-columns: repeat(3, 1fr);
}

.preview-field {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border-left: 3px solid rgba(109, 92, 255, 0.6);
  transition: all 0.2s ease;
}

.preview-field:hover {
  background: rgba(0, 0, 0, 0.25);
  border-left-color: rgba(109, 92, 255, 0.9);
}

.preview-field.inline {
  grid-column: span 1;
}

.preview-field:not(.inline) {
  grid-column: 1 / -1;
}

.preview-field-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-field-value {
  font-size: 13px;
  color: #b5bac9;
  line-height: 1.4;
}

/* ────────── Discord Buttons ────────── */

.discord-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.discord-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.discord-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.discord-btn.primary { background: #5865f2; color: #fff; }
.discord-btn.secondary { background: #4e5058; color: #fff; }
.discord-btn.success { background: #3ba55d; color: #fff; }
.discord-btn.danger { background: #ed4245; color: #fff; }
.discord-btn.link { background: transparent; color: #00aff4; text-decoration: underline; }

.btn-link-icon {
  margin-left: 4px;
  font-size: 12px;
}

/* ────────── Author & Footer ────────── */

.embed-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.embed-author-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.embed-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.embed-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.embed-footer-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-footer-text {
  font-size: 12px;
  color: #9ba3b8;
}

.embed-footer-separator {
  color: #7983a0;
  margin: 0 4px;
}

.embed-footer-timestamp {
  font-size: 12px;
  color: #7983a0;
}

/* ────────── Preview Images ────────── */

.preview-embed-thumbnail {
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.preview-embed-thumbnail:hover {
  transform: scale(1.05);
}

.preview-embed-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.preview-embed-image:hover {
  transform: scale(1.02);
}

/* ────────── Discord Markdown ────────── */

.embed-description code,
.preview-field-value code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
}

.embed-description strong,
.preview-field-value strong { font-weight: 700; }

.embed-description em,
.preview-field-value em { font-style: italic; }

.embed-description u,
.preview-field-value u { text-decoration: underline; }

.embed-description del,
.preview-field-value del { text-decoration: line-through; opacity: 0.7; }

.embed-description blockquote {
  border-left: 4px solid rgba(109, 92, 255, 0.5);
  padding-left: 12px;
  margin: 8px 0;
  color: #b5bac9;
}

.embed-description h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 8px;
  color: #ffffff;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  🧩 9. CONTEXT MENU                                       ║
   ║  Контекстне меню (правий клік)                            ║
   ╚═══════════════════════════════════════════════════════════╝ */

.context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 200px;
  padding: 8px 0;
  background: linear-gradient(135deg, #1e2230, #191c26);
  border-radius: 12px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  display: none;
}

.context-group {
  list-style: none;
  margin: 0;
  padding: 0 6px;
}

.context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd3ff;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.context-item:hover {
  background: rgba(155,92,255,0.18);
}

.context-item:active {
  transform: scale(0.97);
}

.context-item.danger {
  color: #ffb3b3;
}

.context-item.danger:hover {
  background: rgba(255,80,80,0.2);
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  ❔ 10. FORMATTING TOOLTIP                                ║
   ║  Підказка форматування Markdown                          ║
   ╚═══════════════════════════════════════════════════════════╝ */

.label-with-help {
  display: flex;
  align-items: center;
}

.formatting-help-btn {
  position: relative;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 50%;
  color: #5865f2;
  cursor: help;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.formatting-help-btn:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
  transform: scale(1.1);
}

.formatting-tooltip {
  position: absolute !important;
  z-index: 99999 !important;
  background: rgba(20, 24, 38, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  padding: 16px;
  min-width: 320px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(88, 101, 242, 0.4) !important;
  display: none;
  top: 100%;
  left: 0;
  margin-top: 8px;
}

.formatting-help-btn:hover .formatting-tooltip {
  display: block;
}

.formatting-tooltip h4 {
  margin: 0 0 12px 0;
  color: #e7e9f0;
  font-size: 14px;
  font-weight: 600;
}

.formatting-tooltip ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.formatting-tooltip li {
  padding: 6px 0;
  color: #b5bac9;
  font-size: 12px;
  font-family: 'Consolas', 'Monaco', monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.formatting-tooltip li code {
  background: rgba(88, 101, 242, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: #e7e9f0;
  flex-shrink: 0;
}

.formatting-tooltip li span {
  color: #7983a0;
  flex: 1;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  ⚙️ 11. MODAL WINDOWS                                     ║
   ║  Модальні вікна (Settings тощо)                           ║
   ╚═══════════════════════════════════════════════════════════╝ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 90%;
  max-width: 520px;
  background: linear-gradient(135deg, #1e2230, #191c26);
  border: 1px solid rgba(109, 92, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 24px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(109, 92, 255, 0.2);
  overflow: hidden;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #e7e9f0;
  letter-spacing: 0.3px;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #9ba3b8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff5050;
}

.modal-body {
  padding: 28px;
}

.modal-field {
  margin-bottom: 20px;
}

.modal-field:last-child {
  margin-bottom: 0;
}

.modal-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #b5bac9;
  letter-spacing: 0.3px;
}

.modal-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #7983a0;
  font-style: italic;
}

.channel-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

.channel-icon {
  font-size: 18px;
}

.channel-name {
  font-size: 14px;
  font-weight: 500;
  color: #e7e9f0;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.modal-footer-right {
  display: flex;
  gap: 12px;
}

.modal-footer .adc-soft-btn,
.modal-footer .adc-primary-btn,
.modal-footer .adc-danger-btn {
  min-width: 120px;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  🔔 12. TOAST NOTIFICATIONS (v1.1)                        ║
   ║  Спливаючі повідомлення                                   ║
   ╚═══════════════════════════════════════════════════════════╝ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e2230, #191c26);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  color: #e7e9f0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-success {
  border-color: rgba(59, 165, 93, 0.4);
  background: linear-gradient(135deg, rgba(59, 165, 93, 0.1), #191c26);
}

.toast-error {
  border-color: rgba(237, 66, 69, 0.4);
  background: linear-gradient(135deg, rgba(237, 66, 69, 0.1), #191c26);
}

.toast-info {
  border-color: rgba(88, 101, 242, 0.4);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), #191c26);
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  💾 13. AUTOSAVE INDICATOR (v1.1)                         ║
   ║  Індикатор автозбереження                                 ║
   ╚═══════════════════════════════════════════════════════════╝ */

.autosave-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  font-size: 11px;
  color: #7983a0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.autosave-indicator.saved {
  color: #3ba55d;
  opacity: 1;
}

.autosave-indicator.saved .autosave-dot {
  background: #3ba55d;
  box-shadow: 0 0 8px rgba(59, 165, 93, 0.6);
}

.autosave-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7983a0;
  transition: all 0.3s ease;
}

.autosave-text {
  font-weight: 500;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  📱 14. RESPONSIVE                                        ║
   ║  Адаптивні стилі для різних розмірів екрану               ║
   ╚═══════════════════════════════════════════════════════════╝ */

@media (max-width: 1400px) {
  .message-builder-grid {
    grid-template-columns: 1fr;
  }
  
  .message-preview {
    position: static;
  }
  
  .editor-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .editor-row {
    grid-template-columns: 1fr;
  }
  
  .folder-item {
    min-width: 160px !important;
  }
  
  .message-paper {
    min-width: 180px;
  }
  
  .embed-field-row,
  .message-button-row {
    padding: 12px;
  }
  
  .discord-preview {
    max-height: 400px;
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  
  .toast {
    max-width: 100%;
  }
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  ✅ END OF PUBLISHER v1.1 STYLES                          ║
   ╚═══════════════════════════════════════════════════════════╝ */

   /* v1.1 - Підпис під назвою сторінки */
.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

   /* v1.1 - Publisher Icon */
.publisher-icon {
  background: radial-gradient(
    circle at center,
    transparent 36%,
    rgba(241,196,15,0.28) 40%,
    rgba(241,196,15,0.18) 70%,
    rgba(0,0,0,0.65) 100%
  );
  box-shadow:
    0 0 50px rgba(241,196,15,0.55),
    inset 0 0 28px rgba(255,255,255,0.08);
}

/* Publisher — квадратне внутрішнє вікно */
.hero-icon.publisher-icon::after {
  display: none;
}

.publisher-icon svg {
  fill: #ffd54f;
  filter: drop-shadow(0 0 8px rgba(241,196,15,0.6));
}

/*  індикатор статусу бота (online/offline) в меню */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-dot.offline {
  background: #666;
  box-shadow: 0 0 8px rgba(102, 102, 102, 0.5);
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
  animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}