/* Global scale — no zoom, native size */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Chat container */
.chat-container {
  background: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e293b' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Pulse animation for RUNNING status */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Alpine.js collapse transition */
[x-collapse] {
  overflow: hidden;
}

/* Loading spinner */
.spinner {
  border: 3px solid #334155;
  border-top-color: #25D366;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Select styling */
select option {
  background: #1e293b;
  color: #e2e8f0;
}

/* Range input */
input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #25D366;
  border-radius: 50%;
  cursor: pointer;
}

/* Time input */
input[type="time"] {
  color-scheme: dark;
}

/* Checkbox */
input[type="checkbox"] {
  cursor: pointer;
}

/* Smooth page transitions */
[x-show] {
  transition: opacity 0.15s ease;
}

/* Focus ring */
*:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}

/* ============================================
   Card & Row Styles
   ============================================ */

/* Stat cards — subtle lift on hover */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Session cards */
.session-card {
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.session-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Campaign cards */
.campaign-card {
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.campaign-card:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Contact rows — subtle highlight */
.contact-row {
  transition: background-color 0.15s ease;
}
.contact-row:hover {
  background: rgba(51, 65, 85, 0.2);
}

/* ============================================
   Progress bar shine animation
   ============================================ */
@keyframes progress-shine {
  0% { left: -30%; }
  100% { left: 130%; }
}
.progress-bar-animated {
  position: relative;
  overflow: hidden;
}
.progress-bar-animated::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: progress-shine 2.5s ease-in-out infinite;
}

/* ============================================
   Sidebar active item glow
   ============================================ */
nav a[class*="bg-wa"] {
  box-shadow: inset 3px 0 0 #25D366;
}
