/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Import transcript styles */
@import url("/assets/transcript-96717fd6.css");

/* Import landing page fixes */
@import url("/assets/landing_fixes-c2f2e9e4.css");

/* Import marketplace styles */
@import url("/assets/marketplace-724d3ed7.css");

/* Import our custom Excalidraw overrides */
@import url("/assets/excalidraw-9927827a.css");

/* Video Player Enhancements */
.video-controls-visible .video-controls {
  opacity: 1;
}

.video-player:hover .video-controls {
  opacity: 1;
}

/* Theater Mode */
.theater-mode .video-container {
  max-width: 100%;
  margin: 0;
}

/* Fullscreen adjustments */
.video-player:fullscreen {
  background: #000;
}

.video-player:fullscreen .video-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Skip animation */
@keyframes skip-indicator {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

.skip-indicator {
  animation: skip-indicator 0.5s ease-out;
}

/* Volume indicator */
.volume-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  pointer-events: none;
}

/* Chapter markers */
.chapter-marker {
  position: absolute;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.chapter-marker:hover {
  background: #facc15;
}

.chapter-marker-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  margin-bottom: 8px;
}

.chapter-marker:hover .chapter-marker-tooltip {
  opacity: 1;
}

/* Focus Mode */
.focus-mode-active {
  overflow: hidden;
}

.focus-mode-video {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: black;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
}

.focus-mode-video .video-player {
  height: 100vh !important;
}

.lesson-container.focus-mode {
  position: relative;
}

/* Escape hint for focus mode */
.focus-mode-video::before {
  content: "Press D to exit focus mode";
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}

.focus-mode-video:hover::before {
  opacity: 1;
}

/* Cloudflare Stream iframe styles */
.cloudflare-stream-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: all;
}

/* Ensure the iframe fills its container with proper rounded corners */
.video-player .cloudflare-stream-iframe {
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Control overlay styles */
[data-cloudflare-video-player-target="controlsOverlay"] {
  pointer-events: none;
}

[data-cloudflare-video-player-target="controlsOverlay"] button {
  pointer-events: all;
  cursor: pointer;
}

/* Hide overlay when playing (but show on hover) */
[data-cloudflare-video-player-target="controlsOverlay"].opacity-0 {
  opacity: 0;
}

[data-cloudflare-video-player-target="controlsOverlay"].opacity-0:hover {
  opacity: 1;
}

/* Loading state for video player */
.video-loading [data-cloudflare-video-player-target="loadingSpinner"] {
  opacity: 1;
}

/* Progress bar using CSS custom property to avoid inline styles */
[data-cloudflare-video-player-target="progressBar"] {
  width: var(--progress-width, 0%);
  --progress-width: 0%;
  transition: width 0.3s ease;
}

/* Alternative: Use data attribute for width to avoid CSP issues */
[data-cloudflare-video-player-target="progressBar"][data-progress-width] {
  width: attr(data-progress-width percentage, 0%);
}

/* Compact Tracking Toggle Button in Progress Bar */
.tracking-toggle-compact {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.tracking-toggle-compact:hover {
  background: rgba(55, 65, 81, 0.8);
  border-color: rgba(107, 114, 128, 0.5);
  transform: scale(1.05);
}

.tracking-toggle-compact:active {
  transform: scale(0.95);
}

.tracking-toggle-compact[aria-pressed="true"] {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Tracking Indicator Dot */
.tracking-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.tracking-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(107, 114, 128, 0.6);
  transition: all 0.3s ease;
}

.tracking-toggle-compact[aria-pressed="true"] .tracking-dot {
  background: #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Compact Icons */
.tracking-icon-compact {
  width: 14px;
  height: 14px;
  color: rgba(156, 163, 175, 0.8);
  transition: all 0.2s ease;
  pointer-events: none;
}

.tracking-toggle-compact:hover .tracking-icon-compact {
  color: white;
}

.tracking-toggle-compact[aria-pressed="true"] .tracking-icon-pause {
  color: #10B981;
}

/* Tracking Status Compact */
.tracking-status-compact {
  transition: all 0.3s ease;
}

.tracking-status-compact [data-cloudflare-video-player-target="trackingStatusText"] {
  transition: all 0.3s ease;
}

.tracking-status-compact [data-cloudflare-video-player-target="trackingStatusText"].active {
  color: #10B981;
}

/* Mobile Responsive - Keep button visible on mobile */
@media (max-width: 640px) {
  .tracking-toggle-compact {
    width: 28px;
    height: 28px;
  }
  
  .tracking-icon-compact {
    width: 12px;
    height: 12px;
  }
  
  .tracking-status-compact {
    display: none; /* Hide status text on very small screens */
  }
  
  .tracking-indicator {
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
  }
}

/* Manual Tracking Panel Styles */
.tracking-panel {
  transition: all 0.3s ease;
}

/* Tracking Ring Styles */
.tracking-ring {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

/* Slow spin animation for active tracking */
@keyframes spin-slow {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 4s linear infinite;
}

/* Subtle pulse for active tracking button */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s ease-in-out infinite;
}

/* Tracking FAB styles */
.tracking-fab {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.tracking-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tracking-fab:active {
  transform: translateY(0);
}

/* Toast notification animations */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

.animate-slide-out-right {
  animation: slide-out-right 0.3s ease-in;
}

/* Bounce in animation for completion badge */
@keyframes bounce-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-bounce-in {
  animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Mobile status bar styles */
.mobile-tracking-bar {
  transition: all 0.3s ease;
}

/* Tracking panel hover effects */
.tracking-panel button:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* Ensure proper layering */
.tracking-panel {
  z-index: 20;
}

.tracking-fab {
  z-index: 40;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .tracking-panel {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    min-height: auto;
    width: auto;
  }
  
  .tracking-panel > div {
    flex-direction: row;
    min-height: auto;
    width: auto;
    padding: 0.75rem 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tracking-panel button {
    border: 2px solid currentColor;
  }
  
  .tracking-fab {
    border: 2px solid currentColor;
  }
  
  .tracking-ring circle {
    stroke-width: 4;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-spin-slow,
  .animate-pulse-subtle,
  .animate-pulse,
  .animate-slide-in-right,
  .animate-slide-out-right,
  .animate-bounce-in {
    animation: none;
  }
  
  .tracking-fab:hover {
    transform: none;
  }
}

/* ===== BEAUTIFUL VIDEO PROGRESS TRACKING UI ===== */

/* DEPRECATED - Desktop Side Panel (Removed) */
/* .video-tracking-panel {
  width: 90px; /* Compact width */
  min-width: 90px;
  max-width: 90px;
  height: auto; /* Let it size based on content */
  background: #1A1F2E; /* Darker solid background */
  background: linear-gradient(180deg, #1A1F2E 0%, #111827 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 2px solid #374151; /* More visible border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4),
              inset 1px 0 0 rgba(255, 255, 255, 0.05); /* Inner highlight */
}

/* Progress Ring Container */
.progress-ring-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Progress Ring */
.progress-ring {
  width: 60px;
  height: 60px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(55, 65, 81, 0.3);
  stroke-width: 3;
}

.progress-ring-fill {
  fill: none;
  stroke: #10B981; /* Emerald-500 */
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 188.5; /* 2πr where r=30 */
  stroke-dashoffset: var(--ring-progress, 188.5);
  --ring-progress: 188.5;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.3s ease;
}

.progress-ring-fill.tracking-active {
  animation: rotate-ring 8s linear infinite;
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Play/Pause Button */
.tracking-toggle-btn {
  position: absolute;
  inset: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1F2937; /* Solid gray-800 */
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  border: 1px solid rgba(55, 65, 81, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.tracking-toggle-btn:hover {
  background: #374151; /* Solid gray-700 */
  background: linear-gradient(135deg, #374151 0%, #1F2937 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border-color: rgba(75, 85, 99, 0.6);
}

.tracking-toggle-btn:active {
  transform: scale(0.98);
}

.tracking-toggle-btn.active {
  background: #064E3B; /* Emerald-900 with opacity */
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
  border-color: rgba(16, 185, 129, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(16, 185, 129, 0.4);
  }
}

/* Icon Styles */
.tracking-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
  pointer-events: none; /* Prevent icon from blocking button clicks */
}

.tracking-icon-play {
  color: #9CA3AF; /* Gray-400 - more visible */
}

.tracking-toggle-btn:hover .tracking-icon-play {
  color: #FFFFFF; /* Pure white on hover */
}

.tracking-toggle-btn.active .tracking-icon-play {
  display: none; /* Hide when active */
}

.tracking-icon-pause {
  color: #10B981; /* Emerald-500 */
}

.tracking-toggle-btn:hover .tracking-icon-pause {
  color: #34D399; /* Emerald-400 */
}

.tracking-toggle-btn:not(.active) .tracking-icon-pause {
  display: none; /* Hide when not active */
}

/* Status Label */
.tracking-status {
  text-align: center;
  padding: 0.25rem 0;
}

.tracking-status-label {
  font-size: 0.625rem; /* 10px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.tracking-status-label.inactive {
  color: rgba(107, 114, 128, 0.9); /* Gray-500 */
}

.tracking-status-label.active {
  color: #10B981; /* Emerald-500 */
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.tracking-status-label.complete {
  color: #10B981; /* Emerald-500 */
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Progress ring color states */
.progress-ring-fill.progress-low {
  stroke: #10B981; /* Emerald-500 for 0-49% */
}

.progress-ring-fill.progress-medium {
  stroke: #3B82F6; /* Blue-500 for 50-89% */
}

.progress-ring-fill.progress-high {
  stroke: #10B981; /* Green-500 for 90-100% */
}

/* Playback Status Icons and Animation */
.playback-status-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
}

.playback-status-icon.tracking {
  color: #10B981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.playback-status-icon.paused {
  color: #6B7280;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Time Counter */
.tracking-time-counter {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(55, 65, 81, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tracking-time-counter:hover {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(55, 65, 81, 0.5);
}

.tracking-time-display {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  display: block;
  margin-bottom: 0.125rem;
}

.tracking-time-label {
  font-size: 0.625rem;
  color: rgba(156, 163, 175, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Keyboard Hint */
.tracking-keyboard-hint {
  margin-top: auto;
  padding-top: 1rem;
}

.tracking-keyboard-hint kbd {
  background: #1F2937;
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  color: rgba(156, 163, 175, 0.9);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Tracking Tooltip */
.tracking-tooltip {
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
  white-space: nowrap;
  animation: fade-in 0.3s ease-out;
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.tracking-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #111827;
  margin-top: -1px;
}

/* Mobile FAB - Floating Action Button */
.mobile-tracking-fab {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  width: 56px;
  height: 56px;
  z-index: 40;
}

.mobile-fab-button {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111827; /* Solid gray-900 */
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 65, 81, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
              0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-fab-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 4px 8px rgba(0, 0, 0, 0.3);
}

.mobile-fab-button:active {
  transform: translateY(0) scale(0.98);
}

.mobile-fab-button.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  border-color: rgba(16, 185, 129, 0.5);
}

/* Mobile Pulse Animation */
.mobile-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  animation: pulse-expand 1.5s ease-out infinite;
}

@keyframes pulse-expand {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Mobile Status Bar */
.mobile-status-bar {
  position: fixed;
  bottom: 5rem;
  left: 1rem;
  right: 5rem;
  background: #111827;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-status-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.mobile-status-dot.inactive {
  background: rgba(107, 114, 128, 0.9);
}

.mobile-status-dot.active {
  background: #10B981;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.mobile-status-text {
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-status-text.inactive {
  color: rgba(156, 163, 175, 0.9);
}

.mobile-status-text.active {
  color: #10B981;
}

.mobile-time-display {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

/* Toast Notifications - Positioned better without side panel */
.tracking-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  max-width: 320px;
  background: #111827;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: slide-in-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(55, 65, 81, 0.4);
}

.tracking-toast.success {
  border-left: 4px solid #10B981;
}

.tracking-toast.warning {
  border-left: 4px solid #F59E0B;
}

.tracking-toast.info {
  border-left: 4px solid #6B7280;
}

.tracking-toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.tracking-toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tracking-toast-icon.success {
  color: #10B981;
}

.tracking-toast-icon.warning {
  color: #F59E0B;
}

.tracking-toast-icon.info {
  color: #9CA3AF;
}

.tracking-toast-message {
  font-size: 0.875rem;
  color: white;
  line-height: 1.4;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-out-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.animate-slide-out-right {
  animation: slide-out-right 0.3s ease-in forwards;
}

@keyframes bounce-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Completion Badge */
.completion-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.completion-badge svg {
  width: 12px;
  height: 12px;
  color: white;
}

/* Simplified Video Layout - No Side Panel */
.video-main-container {
  position: relative;
  background: #000000; /* Ensure black background */
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%; /* Take full width */
}

/* Ensure video player container takes full space */
.video-player {
  width: 100%;
  max-width: 100%;
}

.video-player .relative.aspect-video {
  width: 100%;
}

/* Hide old mobile FAB and status bar - using compact button instead */
.mobile-tracking-fab,
.mobile-status-bar,
.video-tracking-panel {
  display: none !important; /* Force hide old UI elements */
}
