/* =========================================================
   🤖 MAIN STYLE ADC v1.1 (🚧)
   [Control Center Styles — Anbu Discord Admin]
   ========================================================= */

/*🧠 Архітектура:
  🧠 Головний CSS файл для ADC панелі
  🧠 Містить спільні стилі для всіх модулів
  🧠 CSS Variables, Reset, Layout */

/*💡 Секції:
  💡 1. Theme Variables
  💡 2. Reset & Base
  💡 3. Animated Background
  💡 4. Root Layout
  💡 5. Sidebar
  💡 6. Navigation Menu
  💡 7. Sidebar Bottom
  💡 8. Workspace
  💡 9. Hero Section
  💡 10. Panels
  💡 11. Bot Core Panel
  💡 12. Action Buttons
  💡 13. Terminal Panel
  💡 14. Log Tabs
  💡 15. Bot Console
  💡 16. Log Items
  💡 17. Log Types
  💡 18. Terminal Footer
  💡 19. Debug Modal
  💡 20. Toast Notifications
  💡 21. Responsive */


/* ╔═══════════════════════════════════════════════════════════╗
   ║  🎨 1. THEME VARIABLES                                     ║
   ║  CSS змінні для кольорів, відступів, анімацій              ║
   ╚═══════════════════════════════════════════════════════════╝ */

:root {
  --bg-main: #0a0c11;
  --bg-panel: #141826;
  --bg-soft: rgba(255,255,255,0.04);

  --border-soft: rgba(255,255,255,0.08);

  --text-main: #ffffff;
  --text-muted: #9aa0aa;

  --blue: #5865f2;
  --green: #2ecc71;
  --red: #ff4d4f;
  --yellow: #f5c542;
  --purple: #9b5cff;
  --cyan: #00d4ff;
  --orange: #ff9500;

  /* v1.1 additions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🔄 2. RESET & BASE                                        ║
   ║  Скидання стилів браузера                                  ║
   ╚═══════════════════════════════════════════════════════════╝ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  overflow-x: hidden;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🌌 3. ANIMATED BACKGROUND                                 ║
   ║  Плаваючий градієнтний фон                                 ║
   ╚═══════════════════════════════════════════════════════════╝ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(88,101,242,0.15), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(155,92,255,0.15), transparent 45%);
  animation: bgFloat 18s ease-in-out infinite alternate;
}

@keyframes bgFloat {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.12) translateY(-2%); }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📐 4. ROOT LAYOUT                                         ║
   ║  Основна структура сторінки                                ║
   ╚═══════════════════════════════════════════════════════════╝ */

.adc-root {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  padding: 40px 24px;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📚 5. SIDEBAR                                             ║
   ║  Бічна панель навігації                                    ║
   ╚═══════════════════════════════════════════════════════════╝ */

.adc-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 40px;
  background: linear-gradient(180deg, #0f1118, #0b0d12);
  border-right: 1px solid var(--border-soft);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-radius: 18px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.adc-logo {
  text-align: center;
}

.logo-glow {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(88,101,242,0.6);
}

/* v1.1 - Logo Version Badge (superscript with background) */
.logo-version {
  font-size: 9px;
  font-weight: 700;
  color: rgba(184, 192, 255, 0.9);
  vertical-align: super;
  margin-left: 4px;
  letter-spacing: 0.5px;
  background: rgba(88, 101, 242, 0.25);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.adc-divider {
  height: 1px;
  width: 100%;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📂 6. NAVIGATION MENU                                     ║
   ║  Меню навігації модулів                                    ║
   ╚═══════════════════════════════════════════════════════════╝ */

.adc-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  background: transparent;
  border: none;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(88,101,242,0.35), rgba(155,92,255,0.35));
  color: #fff;
  box-shadow: 0 0 20px rgba(88,101,242,0.5);
}

/* v1.1 - Menu Icons */
.menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.menu-text {
  flex: 1;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  ⬇️ 7. SIDEBAR BOTTOM                                      ║
   ║  Нижня частина sidebar (статус, кнопка назад)              ║
   ╚═══════════════════════════════════════════════════════════╝ */

.adc-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* v1.1 - Sidebar Bot Status */
.sidebar-bot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transition: all var(--transition-normal);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* Back Button */
.menu-back {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border: none;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: #eaeaff;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--transition-normal);
}

.menu-back-glow {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 38px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 70, 70, 0.85), rgba(255, 70, 70, 0.3), rgba(255, 70, 70, 0));
  filter: blur(2px);
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

.menu-back:hover .menu-back-glow {
  width: 72%;
}

.menu-back-icon {
  position: relative;
  z-index: 2;
  font-size: 22px;
  transition: transform 0.35s ease;
}

.menu-back:hover .menu-back-icon {
  transform: translateX(-4px);
}

.menu-back-text {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #ffd6d6;
  text-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 -1px 0 rgba(0,0,0,0.6);
}

.menu-back:hover .menu-back-text {
  text-shadow: 0 0 10px rgba(255,95,95,0.8), 0 0 20px rgba(255,95,95,0.4);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🖥️ 8. WORKSPACE                                           ║
   ║  Основна робоча область                                    ║
   ╚═══════════════════════════════════════════════════════════╝ */

.adc-workspace {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  overflow: visible;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🦸 9. HERO SECTION                                        ║
   ║  Заголовок сторінки з іконкою                              ║
   ╚═══════════════════════════════════════════════════════════╝ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.hero-icon {
  width: 56px;
  height: 56px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    transparent 36%,
    rgba(88,101,242,0.28) 40%,
    rgba(88,101,242,0.18) 70%,
    rgba(0,0,0,0.65) 100%
  );
  box-shadow: 0 0 50px rgba(88,101,242,0.55), inset 0 0 28px rgba(255,255,255,0.08);
  animation: gear-float 6s ease-in-out infinite;
}

.hero-icon::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: rgba(0,0,0,0.9);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.15);
}

.hero-icon svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
  animation: gear-spin 18s linear infinite;
  filter: drop-shadow(0 0 8px rgba(88,101,242,0.6));
}

@keyframes gear-spin {
  to { transform: rotate(360deg); }
}

@keyframes gear-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-title-text {
  font-size: 33px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #b8c0ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(88,101,242,0.45), 0 0 4px rgba(255,255,255,0.25);
}

/* v1.1 - Hero Stats */
.hero-stats {
  display: flex;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📦 10. PANELS                                             ║
   ║  Базові стилі панелей                                      ║
   ╚═══════════════════════════════════════════════════════════╝ */

.adc-panel {
  background: linear-gradient(180deg, #161a26, #11141d);
  border-radius: var(--radius-xl);
  padding: 26px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🤖 11. BOT CORE PANEL                                     ║
   ║  Панель статусу бота                                       ║
   ╚═══════════════════════════════════════════════════════════╝ */

.bot-core {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.bot-core-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bot-core-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.status-label {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.status-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2px;
}

.status-label.offline {
  color: #ff5f5f;
  text-shadow: 0 0 12px rgba(255,95,95,.6);
  animation: status-offline-pulse 2.5s ease-in-out infinite;
}

@keyframes status-offline-pulse {
  0%,100% { opacity: .7; text-shadow: 0 0 8px rgba(255,95,95,.35); }
  50% { opacity: 1; text-shadow: 0 0 18px rgba(255,95,95,.75); }
}

.status-label.online {
  color: #4cff9a;
  text-shadow: 0 0 14px rgba(76,255,154,.7);
  animation: status-online-glow 1.8s ease-in-out infinite alternate;
}

@keyframes status-online-glow {
  from { text-shadow: 0 0 10px rgba(76,255,154,.4); }
  to { text-shadow: 0 0 20px rgba(76,255,154,.9); }
}

.status-label.starting {
  color: #ffc861;
  text-shadow: 0 0 12px rgba(255,200,97,.6);
  animation: status-starting-blink 1.2s linear infinite;
}

@keyframes status-starting-blink {
  0% { opacity: .4; }
  50% { opacity: 1; }
  100% { opacity: .4; }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🎯 12. ACTION BUTTONS                                     ║
   ║  Кнопки керування ботом (Start/Stop/Restart)               ║
   ╚═══════════════════════════════════════════════════════════╝ */

.bot-core-actions {
  display: flex;
  gap: 18px;
}

.action-btn {
  min-width: 180px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  transition: all var(--transition-normal);
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 34px;
  line-height: 1;
}

.btn-text {
  font-size: 15px;
  font-weight: 700;
}

.action-btn.start {
  box-shadow: inset 0 0 0 1px rgba(46,204,113,.4);
}
.action-btn.start:hover {
  background: rgba(46,204,113,.15);
  box-shadow: 0 0 24px rgba(46,204,113,.6);
}

.action-btn.stop {
  box-shadow: inset 0 0 0 1px rgba(255,77,79,.4);
}
.action-btn.stop:hover {
  background: rgba(255,77,79,.15);
  box-shadow: 0 0 24px rgba(255,77,79,.6);
}

.action-btn.restart {
  box-shadow: inset 0 0 0 1px rgba(245,166,35,.4);
}
.action-btn.restart:hover {
  background: rgba(245,166,35,.18);
  box-shadow: 0 0 24px rgba(245,166,35,.6);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  💻 13. TERMINAL PANEL                                     ║
   ║  Термінал для логів                                        ║
   ╚═══════════════════════════════════════════════════════════╝ */

.terminal-panel {
  display: flex;
  flex-direction: column;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Glitch Title */
.glitch {
  position: relative;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  z-index: 1;
  text-align: center;
  margin: 0;
  line-height: 1.13;
}

.glitch:before,
.glitch:after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

.glitch:before {
  color: #00fff7;
  z-index: -1;
  animation: glitch-it 5.5s steps(1, end) infinite;
}

.glitch:after {
  color: #ff00ff;
  z-index: -2;
  animation: glitch-it 5.5s steps(1, end) infinite reverse;
}

@keyframes glitch-it {
  0%,10% { opacity: 0; transform: none; }
  11%,13% { opacity: .85; transform: translate(-2px,2px); }
  14%,60% { opacity: 0; transform: none; }
  61%,64% { opacity: .85; transform: translate(2px,-2px); }
  65%,95% { opacity: 0; transform: none; }
  96%,98% { opacity: .8; transform: translate(-2px,-2px); }
  99%,100% { opacity: 0; transform: none; }
}

/* v1.1 - Terminal Controls */
.terminal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Auto-refresh Toggle - Custom Checkbox */
.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auto-refresh-toggle input {
  display: none;
}

.auto-refresh-toggle .toggle-label {
  position: relative;
  padding-left: 36px;
  transition: color var(--transition-fast);
}

.auto-refresh-toggle .toggle-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: all var(--transition-normal);
}

.auto-refresh-toggle .toggle-label::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

/* Checked state */
.auto-refresh-toggle input:checked + .toggle-label::before {
  background: rgba(88,101,242,0.4);
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(88,101,242,0.3);
}

.auto-refresh-toggle input:checked + .toggle-label::after {
  left: 15px;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(88,101,242,0.6);
}

.auto-refresh-toggle input:checked + .toggle-label {
  color: var(--text-main);
}

/* Hover */
.auto-refresh-toggle:hover .toggle-label::before {
  border-color: rgba(255,255,255,0.2);
}

.auto-refresh-toggle:hover .toggle-label {
  color: var(--text-main);
}

.refresh-indicator {
  width: 8px;
  height: 8px;
  color: var(--green);
  font-size: 8px;
  transition: all var(--transition-fast);
}

.refresh-indicator.pulse {
  animation: indicator-pulse 0.5s ease;
}

@keyframes indicator-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📋 14. LOG TABS                                           ║
   ║  Табки фільтрації логів                                    ║
   ╚═══════════════════════════════════════════════════════════╝ */

.log-tabs-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  margin-top: 8px;
}

.log-tabs-row1,
.log-tabs-row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  justify-content: flex-end;
  width: 100%;
}

.log-tabs .tab {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.log-tabs .tab:hover {
  color: #fff;
}

.log-tabs .tab.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 0 18px rgba(88,101,242,0.6);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🖥️ 15. BOT CONSOLE                                        ║
   ║  Контейнер для логів                                       ║
   ╚═══════════════════════════════════════════════════════════╝ */

.bot-console {
  margin-top: 18px;
  height: 500px;
  background: #090b10;
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-console::-webkit-scrollbar {
  width: 8px;
}

.bot-console::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

.bot-console::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(88,101,242,0.8), rgba(155,92,255,0.8));
  border-radius: 10px;
}

.bot-console::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(120,130,255,1), rgba(180,120,255,1));
}

/* v1.1 - Console Placeholder & Empty */
.console-placeholder,
.console-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 200px;
  color: var(--text-muted);
}

.placeholder-icon,
.empty-icon {
  font-size: 48px;
  opacity: 0.5;
}

.placeholder-text,
.empty-text {
  font-size: 14px;
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📝 16. LOG ITEMS                                          ║
   ║  Окремі рядки логів                                        ║
   ╚═══════════════════════════════════════════════════════════╝ */

.log-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.log-item::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}

.log-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #b4b9d6;
  border: 1.2px solid #384a8a;
  border-radius: 9px;
  padding: 2px 9px;
  background: rgb(0 0 0 / 28%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.4;
  user-select: none;
}

.log-text {
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  padding-right: 90px;
}

.log-time {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.log-item:hover .log-time {
  opacity: 1;
}

.log-object {
  font-weight: 600;
  color: #ffffff;
  background: rgb(93 93 93 / 10%);
  border-radius: 7px;
  padding: 1px 6px;
  box-shadow: 0 1px 11px rgb(0 0 0);
  border: 1px solid rgb(129 129 129 / 16%);
  transition: background .17s, color .17s, box-shadow .2s;
}

.log-object:hover {
  background: rgba(88,101,242,0.18);
  color: #fff;
  box-shadow: 0 1px 14px rgba(88,101,242,0.10);
}

/* v1.1 - Log ID highlight */
.log-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Log new animation */
.log-new {
  animation: log-appear 0.3s ease;
}

@keyframes log-appear {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🏷️ 17. LOG TYPES                                          ║
   ║  Стилі для різних типів логів                              ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* System */
.log-item.system {
  background: rgba(88,101,242,0.14);
  border-left: 3px solid var(--blue);
}
.log-item.system::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cfd3ff'><circle cx='12' cy='12' r='10' opacity='0.2'/><path d='M11 10h2v7h-2zm0-4h2v2h-2z'/></svg>");
}

/* PM2 / Warning */
.log-item.pm2,
.log-item.warning {
  background: rgba(245,197,66,0.16);
  border-left: 3px solid var(--yellow);
}
.log-item.pm2::before,
.log-item.warning::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffe0a6'><path d='M12 3l10 18H2L12 3z' opacity='0.25'/><path d='M11 10h2v5h-2zm0 6h2v2h-2z'/></svg>");
}

/* Observer */
.log-item.observer {
  background: rgba(46,204,113,0.14);
  border-left: 3px solid var(--green);
}
.log-item.observer::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239dffd0'><circle cx='12' cy='12' r='10' opacity='0.2'/><path d='M10 15l-3-3 1.4-1.4L10 12.2l5.6-5.6L17 8z'/></svg>");
}

/* Error */
.log-item.error {
  background: rgba(255,77,79,0.16);
  border-left: 3px solid var(--red);
}
.log-item.error::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffb4b4'><circle cx='12' cy='12' r='10' opacity='0.25'/><path d='M8 8l8 8M16 8l-8 8' stroke='%23ffb4b4' stroke-width='2'/></svg>");
}

/* Debug */
.log-item.debug {
  background: rgba(255, 99, 183, 0.15);
  border-left: 3px solid #ff63b7;
}
.log-item.debug::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffabe2'><circle cx='12' cy='12' r='10' opacity='0.17'/></svg>");
}

/* Publisher */
.log-item.publisher {
  background: rgba(155,92,255,0.12);
  border-left: 3px solid var(--purple);
}
.log-item.publisher::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dab6ff'><circle cx='12' cy='12' r='10' opacity='0.2'/><path d='M6 12h12v2H6zm0-4h12v2H6zm0 8h12v2H6z'/></svg>");
}

/* v1.1 - Executor */
.log-item.executor {
  background: rgba(255,149,0,0.12);
  border-left: 3px solid var(--orange);
}
.log-item.executor::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffcc80'><circle cx='12' cy='12' r='10' opacity='0.2'/><path d='M12 2l3 9h9l-7 5 3 9-8-6-8 6 3-9-7-5h9z'/></svg>");
}

/* v1.1 - Applicant */
.log-item.applicant {
  background: rgba(0,212,255,0.12);
  border-left: 3px solid var(--cyan);
}
.log-item.applicant::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2380e5ff'><circle cx='12' cy='12' r='10' opacity='0.2'/><path d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>");
}

/* v1.1 - Nexus */
.log-item.nexus {
  background: rgba(88,101,242,0.12);
  border-left: 3px solid var(--blue);
}
.log-item.nexus::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0b0ff'><circle cx='12' cy='12' r='10' opacity='0.2'/><path d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/></svg>");
}

/* Console / Unknown */
.log-item.console,
.log-item.unknown {
  background: rgba(140,140,160,0.10);
  border-left: 3px solid #a8a8b8;
}
.log-item.console::before,
.log-item.unknown::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23b6b6b6' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' opacity='0.18'/></svg>");
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📊 18. TERMINAL FOOTER                                    ║
   ║  Футер терміналу з кнопками                                ║
   ╚═══════════════════════════════════════════════════════════╝ */

.terminal-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.terminal-footer-left,
.terminal-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* v1.1 - Log Count */
.log-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Clear Button */
.adc-clear-btn {
  margin: 0;
  padding: 9px 24px 9px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f9baba;
  border: 2px solid #fa5e5e;
  background: rgba(255, 38, 38, 0.05);
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(255,77,79,0.13);
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.27s, color 0.25s, background 0.25s, border-color 0.23s;
}

.adc-clear-btn:hover {
  color: #fff6f6;
  border-color: #ff2222;
  background: rgba(255,38,38,0.21);
  box-shadow: 0 0 0 2px #ff5959, 0 0 26px #ff3333, 0 0 44px #ff222299;
}

.adc-clear-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 7px #ff6868);
}

/* Debug Open Button */
.debug-open-btn {
  position: relative;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(155,92,255,0.35);
  background: rgba(255,255,255,0.03);
  color: #e9ecff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 0 1px rgba(88,101,242,0.12), 0 14px 28px rgba(0,0,0,0.35);
  transition: transform 0.18s, box-shadow 0.22s, border-color 0.22s, background 0.22s;
}

.debug-open-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(88,101,242,0.55);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(88,101,242,0.20), 0 0 26px rgba(88,101,242,0.22), 0 18px 36px rgba(0,0,0,0.45);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  🐛 19. DEBUG MODAL                                        ║
   ║  Модалка дебаг консолі                                     ║
   ╚═══════════════════════════════════════════════════════════╝ */

.debug-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.debug-modal.open {
  display: block;
}

.debug-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(2px);
}

.debug-modal-window {
  position: relative;
  width: 92%;
  max-width: 1400px;
  height: 82vh;
  margin: 4vh auto 0;
  background: #0b0e16;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.04);
}

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

.debug-modal-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #cfd6ff;
  opacity: 0.5;
}

.debug-indicators {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dbg-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s, transform 0.15s;
}

.dbg-indicator.active {
  opacity: 1;
  transform: scale(1.05);
}

.dbg-icon {
  font-size: 16px;
}

.dbg-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
}

.dbg-indicator.warning.active {
  color: #f5c542;
  text-shadow: 0 0 6px rgba(245,197,66,0.45);
}

.dbg-indicator.error.active {
  color: #ff6b6b;
  text-shadow: 0 0 8px rgba(255,107,107,0.55);
}

.debug-close-btn {
  background: none;
  border: none;
  color: #9d0000;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.debug-close-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.debug-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}

.debug-console-body {
  flex: 1;
  padding: 14px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.50;
  color: #d6d9e6;
  background: #080b12;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* v1.1 - Debug Modal Footer */
.debug-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.debug-clear-btn,
.debug-export-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.debug-clear-btn:hover,
.debug-export-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
}

/* Debug Lines */
.debug-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 6px;
  border-left: 3px solid transparent;
  cursor: pointer;
  opacity: 0.9;
}

.debug-line:hover {
  background: rgba(255,255,255,0.04);
}

.dbg-source {
  min-width: 80px;
  font-weight: 700;
  opacity: 0.85;
}

.debug-line[data-source="ua5-api"] {
  border-left-color: #7aa2ff;
}
.debug-line[data-source="ua5-api"] .dbg-source {
  color: #7aa2ff;
}

.debug-line[data-source="anbu-bot"] {
  border-left-color: #4de3c2;
}
.debug-line[data-source="anbu-bot"] .dbg-source {
  color: #4de3c2;
}

.dbg-tag {
  color: #aab0ff;
  opacity: 0.75;
}

.dbg-time {
  min-width: 70px;
  font-size: 11px;
  opacity: 0.45;
}

.dbg-text {
  flex: 1;
}

.debug-line.type-warning {
  border-left-color: rgb(245 197 66 / 90%);
  color: #f5c542;
}

.debug-line.type-error {
  color: #ff0000;
  font-weight: 600;
  border-left-color: rgb(222 0 0);
}

.type-error .dbg-text {
  color: #ff0000;
}

.type-pm2,
.type-debug {
  opacity: 0.55;
}

.type-pm2:hover,
.type-debug:hover {
  opacity: 0.85;
}

.debug-line.copied {
  background: rgb(255 255 255 / 30%);
}

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

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(20, 24, 38, 0.95);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

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

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

.toast-message {
  font-size: 14px;
  color: var(--text-main);
}

.toast-info {
  border-left: 3px solid var(--blue);
}

.toast-success {
  border-left: 3px solid var(--green);
}

.toast-error {
  border-left: 3px solid var(--red);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  📱 21. RESPONSIVE                                         ║
   ║  Адаптивні стилі                                           ║
   ╚═══════════════════════════════════════════════════════════╝ */

@media (max-width: 1200px) {
  .adc-root {
    flex-direction: column;
    gap: 24px;
  }
  
  .adc-sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 16px;
  }
  
  .adc-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .adc-bottom {
    margin-top: 0;
    flex-direction: row;
  }
}

@media (max-width: 900px) {
  .bot-core {
    flex-direction: column;
    gap: 20px;
  }
  
  .bot-core-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .action-btn {
    min-width: 140px;
  }
}

@media (max-width: 700px) {
  .log-tabs-row1,
  .log-tabs-row2 {
    gap: 4px;
    font-size: 11px;
    justify-content: center;
  }
  
  .terminal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .terminal-footer {
    flex-direction: column;
    gap: 12px;
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  ✅ END OF MAIN STYLE ADC v1.1                             ║
   ╚═══════════════════════════════════════════════════════════╝ */