/* ==========================================================================
   VILECUT // DANGER ZONE STYLESHEET
   Extended 10-Minute Engine & Hazard Cybernetic Theme
   ========================================================================== */

:root {
  --danger-primary: #ffe600;
  --danger-glow: rgba(255, 230, 0, 0.4);
  --danger-red: #ff3344;
  --danger-dark: #121008;
  --danger-border: rgba(255, 230, 0, 0.35);
}

/* Header Danger Badge */
.danger-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.15) 0%, rgba(255, 51, 68, 0.15) 100%);
  border: 1px solid var(--danger-border);
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 0 12px var(--danger-glow);
  animation: danger-glow-pulse 3s infinite ease-in-out;
}

@keyframes danger-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 230, 0, 0.3); border-color: rgba(255, 230, 0, 0.3); }
  50% { box-shadow: 0 0 18px rgba(255, 230, 0, 0.6); border-color: rgba(255, 230, 0, 0.7); }
}

.danger-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger-primary);
  box-shadow: 0 0 8px var(--danger-primary);
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.danger-title {
  font-family: 'CabinetGrotesk', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--danger-primary);
  text-transform: uppercase;
}

/* Exit Danger Zone Button */
.danger-return-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.danger-return-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Duration Presets */
.duration-presets {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover {
  background: rgba(255, 230, 0, 0.12);
  border-color: var(--danger-primary);
  color: var(--danger-primary);
}

.btn-preset.active {
  background: rgba(255, 230, 0, 0.2);
  border-color: var(--danger-primary);
  color: var(--danger-primary);
  box-shadow: 0 0 8px rgba(255, 230, 0, 0.3);
}

.btn-preset.danger-preset {
  border-color: rgba(255, 51, 68, 0.4);
  color: #ff6b7a;
}

.btn-preset.danger-preset:hover,
.btn-preset.danger-preset.active {
  background: rgba(255, 51, 68, 0.2);
  border-color: var(--danger-red);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 51, 68, 0.4);
}

/* Danger Notice Banner in Sidebar */
.danger-notice-card {
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.06) 0%, rgba(255, 51, 68, 0.04) 100%);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.danger-notice-card .notice-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

/* Export Overlay Danger Metrics */
.export-danger-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 16px 0;
  width: 100%;
}

.metric-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.metric-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.metric-val {
  display: block;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #00f2fe;
}

.metric-val.text-yellow {
  color: var(--danger-primary);
}

.metric-val.text-green {
  color: #4ade80;
}

/* Lyric Video Importer Modal & Preview */
.lyrics-preview-entry {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lyrics-preview-entry:last-child {
  border-bottom: none;
}

.lyrics-preview-time {
  color: var(--danger-primary);
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 700;
  white-space: nowrap;
}

.lyrics-preview-text {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom Timeline Toolbar Duration Control Enhancements */
.timeline-duration-control {
  height: auto !important;
  min-height: 28px !important;
  padding: 2px 8px !important;
  gap: 6px !important;
  border-color: var(--danger-border) !important;
}

.timeline-duration-control input[type="range"] {
  width: 90px !important;
}

.timeline-duration-control span {
  min-width: 45px !important;
  color: var(--danger-primary) !important;
  font-weight: 700;
}

#timeline-duration-input:focus,
#export-duration-input:focus {
  outline: none;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
}

#btn-match-song-duration {
  animation: song-btn-glow 2s infinite ease-in-out;
}

@keyframes song-btn-glow {
  0%, 100% { border-color: rgba(0, 242, 254, 0.35); box-shadow: 0 0 4px rgba(0, 242, 254, 0.2); }
  50% { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
}

/* Active Inspector Hoisting to Top of Left Panel */
.left-panel {
  scroll-behavior: smooth;
}

.panel-section.inspector-hoisted {
  order: -1 !important;
  border-color: rgba(0, 242, 254, 0.45) !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15) !important;
}

#text-settings-section.inspector-hoisted {
  border-color: rgba(255, 230, 0, 0.5) !important;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.18) !important;
}




