/* ══════════════════════════════════════════════════════════════
   Telegram Bot Manager — Custom Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B1220;
}
::-webkit-scrollbar-thumb {
  background: #1E2A45;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2A3A5A;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #1E2A45 #0B1220;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Blink animation for terminal-style text ──────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(0,212,255,0.4), 0 0 20px rgba(0,212,255,0.2); }
  50% { opacity: 0.85; text-shadow: 0 0 4px rgba(0,212,255,0.2), 0 0 10px rgba(0,212,255,0.1); }
}
.animate-blink {
  animation: blink 2.5s ease-in-out infinite;
}

/* ── Breath-glow for premium footer fade ─────────────────── */
@keyframes breath-glow {
  0%, 100% { opacity: 0.5; text-shadow: 0 0 4px rgba(0,212,255,0.08), 0 0 12px rgba(0,212,255,0.02); }
  50% { opacity: 0.85; text-shadow: 0 0 8px rgba(0,212,255,0.2), 0 0 25px rgba(0,212,255,0.08); }
}
.animate-breath-glow {
  animation: breath-glow 3.5s ease-in-out infinite;
}

@keyframes gear-pulse {
  0%, 100% { opacity: 0.45; filter: drop-shadow(0 0 2px rgba(0,212,255,0.1)); }
  50% { opacity: 0.8; filter: drop-shadow(0 0 6px rgba(0,212,255,0.25)); }
}
.animate-gear-pulse {
  animation: gear-pulse 3.5s ease-in-out infinite;
}

.bot-card {
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

.bot-card:nth-child(1) { animation-delay: 0.05s; }
.bot-card:nth-child(2) { animation-delay: 0.10s; }
.bot-card:nth-child(3) { animation-delay: 0.15s; }
.bot-card:nth-child(4) { animation-delay: 0.20s; }
.bot-card:nth-child(5) { animation-delay: 0.25s; }
.bot-card:nth-child(6) { animation-delay: 0.30s; }
.bot-card:nth-child(7) { animation-delay: 0.35s; }
.bot-card:nth-child(8) { animation-delay: 0.40s; }

/* ── Message items ─────────────────────────────────────────── */
.message-item {
  animation: fadeInUp 0.3s ease-out forwards;
  opacity: 0;
}
.message-item:nth-child(1) { animation-delay: 0.02s; }
.message-item:nth-child(2) { animation-delay: 0.04s; }
.message-item:nth-child(3) { animation-delay: 0.06s; }
.message-item:nth-child(4) { animation-delay: 0.08s; }
.message-item:nth-child(5) { animation-delay: 0.10s; }

/* ── Glow effects for active elements ───────────────────────── */
.glow-cyan {
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
  transition: box-shadow 0.3s ease;
}
.glow-cyan:hover {
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.3);
}

.glow-purple {
  box-shadow: 0 0 15px rgba(124, 92, 255, 0.15);
  transition: box-shadow 0.3s ease;
}
.glow-purple:hover {
  box-shadow: 0 0 25px rgba(124, 92, 255, 0.3);
}

/* ── Button base reset ─────────────────────────────────────── */
select option {
  background-color: #111B2E;
  color: #E6EDF3;
}

/* ── SweetAlert2 overrides ─────────────────────────────────── */
.swal2-popup {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.swal2-input,
.swal2-textarea {
  background-color: #0B1220 !important;
  color: #E6EDF3 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
  border-color: #00D4FF !important;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2) !important;
}

/* ── File input styling ────────────────────────────────────── */
input[type="file"]::file-selector-button {
  background-color: #111B2E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #00D4FF;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
input[type="file"]::file-selector-button:hover {
  background-color: #1A2A45;
}

/* ── Multi-select ──────────────────────────────────────────── */
select[multiple] {
  background-color: #111B2E;
  color: #E6EDF3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
}
select[multiple] option {
  padding: 6px 10px;
  border-radius: 4px;
}
select[multiple] option:checked {
  background: #00D4FF linear-gradient(0deg, #00D4FF 0%, #00D4FF 100%);
  color: #0B1220;
}

/* ── Table row hover ───────────────────────────────────────── */
tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ── Active nav indicator ──────────────────────────────────── */
#sidebar nav a.active {
  background-color: rgba(0, 212, 255, 0.08);
  color: white;
  border-left: 3px solid #00D4FF;
}

/* ── Smooth page transitions ───────────────────────────────── */
main {
  transition: opacity 0.2s ease;
}
