/* ==========================================================================
   CRYVON STUDIO - Custom Theme Stylesheet
   Company: CryVon LTD
   ========================================================================== */

:root {
  --bg-main: #07090e;
  --bg-sidebar: #0b0f19;
  --bg-card: #111726;
  --bg-card-hover: #161f33;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(249, 115, 22, 0.4);
  
  --primary: #f97316;       /* CryVon Orange */
  --primary-hover: #ea580c;
  --secondary: #f59e0b;     /* Amber Glow */
  --accent: #10b981;        /* Emerald Active */
  --indigo: #6366f1;        /* AI Violet */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(249, 115, 22, 0.4);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(17, 23, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-card {
  background: rgba(19, 27, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  border-color: var(--border-active);
  background: rgba(25, 36, 61, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(249, 115, 22, 0.15);
}

/* Glow & Gradients */
.cryvon-gradient {
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #ea580c 100%);
}

.cryvon-text-gradient {
  background: linear-gradient(135deg, #ff8c42 0%, #f59e0b 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cryvon-glow {
  box-shadow: 0 0 25px -4px rgba(249, 115, 22, 0.4);
}

/* Emotion Pills */
.emotion-pill {
  transition: all 0.2s ease;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.emotion-pill:hover {
  transform: translateY(-1px);
  border-color: #f97316;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.15);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  background: #1e293b;
  border-radius: 9999px;
  height: 6px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f97316;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
  transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Switch Toggle */
.toggle-checkbox:checked {
  right: 0;
  border-color: #f97316;
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #ea580c;
}

/* Pulse animation */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}
.pulse-record {
  animation: softPulse 1.4s infinite ease-in-out;
}

/* Wave Canvas */
#waveformCanvas {
  width: 100%;
  height: 60px;
  display: block;
}

/* Audio Player */
.player-bar {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
}

/* Custom Checkboxes & Batch Selection */
input[type="checkbox"] {
  accent-color: #f97316;
}

.history-card {
  transition: all 0.15s ease-in-out;
}
