/* Presentation Screen Styling - Matches Presentation Reference */

.presentation-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 28px 14px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Top Header Bar */
.pres-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

.pres-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
}

.pres-logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pres-logo-link:hover {
  transform: scale(1.03);
}

.pres-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.pres-logo-tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #3b286d;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Dual Timers Section in Header */
.pres-timers-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex: 1;
}

.timer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(109, 40, 217, 0.12), 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 220px;
}

.timer-card.timer-running {
  border-color: #9333ea;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.4), 0 10px 25px rgba(109, 40, 217, 0.15);
  background: rgba(255, 255, 255, 0.96);
}

.timer-card.timer-warning {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
  animation: pulseWarning 1s infinite alternate;
}

.timer-card.timer-urgent {
  border-color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.55);
  animation: pulseUrgent 0.5s infinite alternate;
}

@keyframes pulseWarning {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

@keyframes pulseUrgent {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.timer-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1b4b;
}

.timer-info {
  display: flex;
  flex-direction: column;
}

.timer-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1;
}

.timer-action-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.timer-svg-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  width: 44px;
  height: 44px;
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(226, 232, 240, 0.9);
  stroke-width: 3.5;
}

.timer-ring-progress {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s linear, stroke 0.3s ease;
}

.timer-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d28d9;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 2;
}

.timer-play-btn:hover {
  transform: scale(1.08);
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

/* Header Right Actions */
.pres-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
  justify-content: flex-end;
}

.pres-header-tagline {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #475569;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.3;
}

.pres-quick-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pres-quick-btn:hover {
  background: #ffffff;
  color: #7c3aed;
  border-color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.pres-quick-btn.active {
  background: #7c3aed;
  color: #ffffff;
}

/* Main Presentation Layout: Left Sidebar + Central Stage */
.pres-main-body {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 5;
  margin-bottom: 12px;
}

/* Left Thumbnails Sidebar */
.pres-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 12px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pres-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-30px);
}

.sidebar-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.sidebar-expand-floating-btn {
  position: absolute;
  left: 28px;
  top: 104px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  color: #6d28d9;
  cursor: pointer;
  z-index: 35;
  transition: all 0.25s ease;
}

.sidebar-expand-floating-btn:hover {
  transform: scale(1.1);
  background: #7c3aed;
  color: #ffffff;
}

body.sidebar-is-collapsed .sidebar-expand-floating-btn {
  display: flex;
}

.sidebar-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-deck-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.sidebar-deck-category {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.sidebar-slide-badge {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  font-family: var(--font-mono);
}

/* Thumbnail Items List */
.sidebar-thumbnails-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.sidebar-thumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.thumb-num-badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  width: 18px;
  text-align: center;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.thumb-preview-box {
  flex: 1;
  height: 64px;
  border-radius: 8px;
  background: #0f172a;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.thumb-preview-box img,
.thumb-preview-box canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-mini-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-thumb-item.active .thumb-num-badge {
  color: #7c3aed;
  font-weight: 800;
}

.sidebar-thumb-item.active .thumb-preview-box {
  border-color: #9333ea;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.55), 0 4px 12px rgba(109, 40, 217, 0.2);
}

.sidebar-thumb-item:hover .thumb-preview-box {
  transform: scale(1.02);
  border-color: rgba(147, 51, 234, 0.5);
}

/* Central Presentation Stage */
.pres-stage-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.pres-slide-viewport {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  flex: 0 1 1200px;
  flex-shrink: 0;
  background: #0a0614;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px -10px rgba(15, 10, 30, 0.45), 0 0 25px rgba(124, 58, 237, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Vertical Ad Spaces (Flanking Blank Excess Space only - 2 stacked slots per side) */
.pres-ad-space {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  max-width: 360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 6;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pres-ad-card {
  width: 100%;
  flex: 1 1 0;
  height: calc(50% - 5px);
  min-height: 0;
  background: rgba(10, 6, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(109, 40, 217, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pres-ad-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 35px rgba(109, 40, 217, 0.25), 0 0 20px rgba(147, 51, 234, 0.15);
  transform: translateY(-2px);
}

.pres-ad-view {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0614;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pres-ad-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.pres-ad-img.ad-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.pres-ad-img.ad-next {
  opacity: 0;
  z-index: 1;
  transform: scale(1.02);
}

/* 10-Second Progress Bar */
.pres-ad-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 10;
}

.ad-timer-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.ad-timer-progress.animate-progress {
  animation: adProgressRun 10s linear;
}

@keyframes adProgressRun {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Excess Space Responsive Rules: If viewport cannot accommodate full slide plus ads, hide ads so presentation window NEVER shrinks */
@media (max-width: 1024px) {
  .pres-ad-space {
    display: none !important;
  }
}

/* If sidebar expands, hide ads on smaller viewports (e.g. <= 1280px) so the slide stage is never compromised */
@media (max-width: 1280px) {
  body:not(.sidebar-is-collapsed) .pres-ad-space {
    display: none !important;
  }
}

/* Deck Stage Loading Indicator */
.deck-stage-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(20, 14, 42, 0.96), rgba(10, 6, 20, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-stage-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.deck-loader-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.35) 0%, rgba(236, 72, 153, 0) 70%);
  border-radius: 50%;
  animation: stageGlowPulse 2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes stageGlowPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.deck-spinner {
  width: 46px;
  height: 46px;
  border: 3.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: #a855f7;
  border-right-color: #ec4899;
  border-radius: 50%;
  animation: deckSpin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  position: relative;
  z-index: 2;
}

@keyframes deckSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.deck-loader-title {
  font-family: var(--font-display, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #f1f5f9;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.deck-loader-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Shimmer Skeleton for lazy thumbnail loading */
.thumb-skeleton {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1e1b4b 25%, #2e2868 50%, #1e1b4b 75%);
  background-size: 200% 100%;
  animation: thumbShimmer 1.5s infinite;
  border-radius: 6px;
}

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

/* Floating Stage Navigation Chevrons */
.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stage-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.stage-nav-prev { left: 16px; }
.stage-nav-next { right: 16px; }

/* Slide Content Renderers */
.slide-render-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#pdf-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.pptx-slide-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Vector Slide Presentation Renderer (For Rich Interactive Decks) */
.vector-slide {
  width: 100%;
  height: 100%;
  padding: 44px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
  background-size: cover;
  background-position: center;
}

.vector-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-badge {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(147, 51, 234, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.vector-slide-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #ffffff;
  margin-top: 14px;
}

.vector-slide-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: #c4b5fd;
  margin-top: 8px;
}

.vector-slide-body {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.slide-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Slide Big Metric Display */
.slide-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 6px;
}

/* Slide Footer Bar */
.vector-slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Laser Pointer / Pen Canvas Overlay */
#annotation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

#annotation-canvas.drawing-active {
  pointer-events: auto;
  cursor: crosshair;
}

#laser-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 15px 4px #ef4444, 0 0 30px #ef4444;
  pointer-events: none;
  z-index: 40;
  transform: translate(-50%, -50%);
  display: none;
}

/* Bottom Floating Controls Bar */
.pres-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 10;
  height: 48px;
}

.pres-bottom-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-group-divider {
  width: 1px;
  height: 20px;
  background: rgba(203, 213, 225, 0.8);
  margin: 0 4px;
}

.control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 700;
}

.control-btn:hover {
  background: rgba(147, 51, 234, 0.12);
  color: #7c3aed;
  transform: scale(1.08);
}

.control-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e1b4b;
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono);
}

/* Bottom Side Slogans */
.pres-bottom-left-slogan,
.pres-bottom-right-slogan {
  position: absolute;
  bottom: 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #475569;
  text-transform: uppercase;
  line-height: 1.4;
  z-index: 1;
}

.pres-bottom-left-slogan { left: 28px; text-align: left; }
.pres-bottom-right-slogan { right: 28px; text-align: right; }

/* Transition Alert Modals */
.alert-modal-content {
  padding: 36px 32px 30px;
  text-align: center;
  position: relative;
}

.alert-modal-icon-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(236, 72, 153, 0.15));
  border: 2px solid #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.35);
  animation: bellRing 1.5s infinite ease-in-out;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(15deg) scale(1.05); }
  40% { transform: rotate(-15deg) scale(1.05); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-10deg); }
}

.alert-modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.alert-modal-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.alert-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-modal-btn-start {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
}

.alert-modal-btn-sub {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* RED THEME MODAL (For Pitcher Time-Up Overtime Alerts) */
.modal-card.theme-red {
  background: rgba(26, 8, 16, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 2px solid rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.55), 0 25px 60px -10px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.modal-card.theme-red .alert-modal-icon-ring {
  width: 82px;
  height: 82px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.15) 70%);
  border: 2px solid #ef4444;
  color: #ef4444;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.7);
  animation: buzzerPulse 0.35s infinite alternate ease-in-out;
}

@keyframes buzzerPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1.12); box-shadow: 0 0 45px rgba(239, 68, 68, 0.9); }
}

.modal-card.theme-red .alert-modal-title {
  color: #fee2e2;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.modal-card.theme-red .alert-modal-desc {
  color: #fca5a5;
  font-size: 15px;
  line-height: 1.5;
}

.modal-card.theme-red .alert-modal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fecaca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.btn-danger-glow {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #f87171 !important;
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.55) !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-danger-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(239, 68, 68, 0.8) !important;
  filter: brightness(1.15);
}

.btn-danger-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fecaca !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-secondary:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* 3-Second Countdown Animated Stage */
.countdown-3s-stage {
  margin: 18px auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-3s-number-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(124, 58, 237, 0.1) 70%);
  border: 3px solid #a855f7;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: #ffffff;
  animation: countdownPop 1s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countdownPop {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.countdown-3s-label {
  font-size: 13px;
  font-weight: 700;
  color: #d8b4fe;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
}

/* Fullscreen Mode Fixes */
:fullscreen .presentation-container {
  padding: 16px 28px;
}

:fullscreen .pres-stage-container {
  height: calc(100vh - 170px);
}

