/* Custom styles & animations for StreamNext */

/* Toolbar buttons */
.tool-btn {
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  background-color: transparent;
  color: #94a3b8;
}

.tool-btn:hover {
  background-color: #1e293b;
  color: #f8fafc;
}

.tool-btn.active {
  background-color: #312e81;
  color: #a5b4fc;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Color buttons */
.color-btn {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  transition: transform 0.15s ease;
  border: 2px solid transparent;
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: #ffffff;
  transform: scale(1.2);
}

/* Control buttons in speaker bar */
.control-btn {
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  transition: all 0.15s ease;
}

.control-btn:hover {
  background-color: #334155;
}

.control-btn.active {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #f87171;
}

/* Reaction buttons */
.reaction-btn {
  padding: 0.25rem 0.375rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  transition: transform 0.1s ease;
}

.reaction-btn:hover {
  transform: scale(1.3);
}

.reaction-btn:active {
  transform: scale(0.9);
}

/* Floating emoji animation */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(-240px) scale(1.4);
    opacity: 0;
  }
}

.floating-emoji {
  position: absolute;
  bottom: 80px;
  right: 60px;
  font-size: 2rem;
  pointer-events: none;
  z-index: 100;
  animation: floatUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Swapped mode: makes speaker box full stage */
.speaker-box-swapped {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  z-index: 15 !important;
  border-radius: 0 !important;
  border: none !important;
}

#presenterOverlayBtn.active {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5) !important;
}

#raiseHandBtn.active {
  background-color: #d97706 !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important;
}

#sidetoneToggleBtn.active {
  background-color: #06b6d4 !important;
  color: #ffffff !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5) !important;
}


/* Modern Light Theme overrides */
body.theme-modern-light {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-modern-light header,
body.theme-modern-light footer,
body.theme-modern-light aside {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-modern-light #canvasContainer {
  background-color: #ffffff !important;
}

body.theme-modern-light .control-btn {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-modern-light .control-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ================= GPU CAS Video Upscaler Styles ================= */
#cas-upscaler-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.cas-upscaler-active {
  filter: url(#cas-hd-upscaler) contrast(1.06) saturate(1.08) !important;
  -webkit-filter: url(#cas-hd-upscaler) contrast(1.06) saturate(1.08) !important;
  transform: translateZ(0);
  will-change: filter;
}

.cas-upscaler-ultra {
  filter: url(#cas-hd-upscaler-ultra) contrast(1.08) saturate(1.10) !important;
  -webkit-filter: url(#cas-hd-upscaler-ultra) contrast(1.08) saturate(1.10) !important;
  transform: translateZ(0);
  will-change: filter;
}

.cas-upscaler-off {
  filter: none !important;
  -webkit-filter: none !important;
  will-change: auto;
}

#toggleUpscalerBtn.active,
#footerUpscalerBtn.active {
  background-color: rgba(16, 185, 129, 0.2) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}

#toggleUpscalerBtn.ultra,
#footerUpscalerBtn.ultra {
  background-color: rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35) !important;
}



