/**
 * css/timelapse_video.css
 * Styling for the Concrete Pouring Timelapse Video Export Module
 */

#timelapse-video-modal {
  z-index: 10000 !important;
}

#timelapse-video-modal.active,
.modal-overlay.active {
  display: flex !important;
}

.timelapse-modal-card {
  max-width: 720px;
  width: 95%;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
  border-radius: 12px;
}

.timelapse-modal-icon {
  width: 38px;
  height: 38px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tl-intro-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-left: 3px solid #38bdf8;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.tl-intro-box strong {
  color: #f8fafc;
}

.tl-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 14px;
}

.tl-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tl-option-row label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  flex: 1;
}

.tl-select {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  min-width: 280px;
  cursor: pointer;
}

.tl-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.tl-features-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tl-badge {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
}

/* Recording Step */
.tl-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060913;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-preview-container canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tl-rec-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  animation: pulseRec 1.2s infinite ease-in-out;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.97); }
}

.tl-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

.tl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  transition: width 0.1s linear;
}

/* Complete Step */
.tl-success-card {
  text-align: center;
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  margin-bottom: 14px;
}

.tl-video-wrapper {
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
}
