/* Custom Styling for Recap Voice Pro Native Web */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Myanmar:wght@300;400;500;600;700&family=Padauk:wght@400;700&display=swap');

:root {
  --bg-primary: #0F172A;
  --bg-surface: #1E293B;
  --border-color: #334155;
  --accent-cyan: #64FFDA;
  --accent-indigo: #6366F1;
}

body {
  font-family: 'Inter', 'Noto Sans Myanmar', 'Padauk', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: #F8FAFC;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366F1;
}

/* Embedded Myanmar Subtitle Fonts */
@font-face {
  font-family: 'Noto Sans Myanmar';
  src: url('../assets/fonts/NotoSansMyanmar-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Padauk';
  src: url('../assets/fonts/Padauk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Pyidaungsu';
  src: url('../assets/fonts/Pyidaungsu.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Noto Serif Myanmar';
  src: url('../assets/fonts/NotoSerifMyanmar-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'MasterpieceUniRound';
  src: url('../assets/fonts/MasterpieceUniRound.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Subtitle Styling with High-Contrast Stroke & Ample Line-Height */
.subtitle-text {
  font-family: 'Noto Sans Myanmar', 'Padauk', sans-serif;
  text-shadow: 
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
     0px  2px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.5px;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
  overflow: visible;
  display: inline-block;
}

/* Glow & Glassmorphism */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glow-indigo {
  box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.4);
}

.glow-cyan {
  box-shadow: 0 0 20px -5px rgba(100, 255, 218, 0.35);
}

/* Spinner Animation */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.pulse-glow {
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Range Input */
input[type="range"] {
  accent-color: #6366F1;
}

/* Textarea focus styling */
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Flag Icons Styling */
.fi {
  width: 1.35em !important;
  height: 1em !important;
  line-height: 1em !important;
  display: inline-block !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  vertical-align: -0.15em !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

/* Custom Dropdown Animations */
#custom-target-lang-dropdown button,
#custom-global-lang-dropdown button {
  user-select: none;
}

/* ==================== HIGH-CONTRAST MODERN TOGGLE SWITCH ==================== */
.rc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  vertical-align: middle;
}

.rc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Track (Capsule) */
.rc-switch-track {
  position: absolute;
  inset: 0;
  background-color: #1E293B;
  border: 1.5px solid #475569;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Thumb (Round Knob) */
.rc-switch-thumb {
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 2.5px;
  background-color: #CBD5E1;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover State */
.rc-switch:hover .rc-switch-track {
  border-color: #64748B;
  background-color: #27354A;
}

/* Checked (ON) State */
.rc-switch input:checked ~ .rc-switch-track {
  background-color: #5B63EE;
  border-color: #818CF8;
  box-shadow: 0 0 12px rgba(91, 99, 238, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.rc-switch input:checked ~ .rc-switch-thumb {
  transform: translateX(18px);
  background-color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.rc-switch:hover input:checked ~ .rc-switch-track {
  background-color: #4F57E5;
  border-color: #A5B4FC;
}

/* ==================== VIBRANT SUBTITLE TEXT STYLING ==================== */
.subtitle-text {
  font-family: 'Pyidaungsu', 'Noto Sans Myanmar', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

