/* PromptJod (พร้อมจด) - Elite Fintech UI/UX Design System */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Noto+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --font-thai: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-numbers: 'Outfit', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-thai);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  background-color: #080C14;
  color: #F8FAFC;
}

/* Headings Typography: Clean, crisp Noto Sans Thai for all page & section headers */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-thai) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Currency / Number Typography: Noto Sans & Outfit with tabular alignment (tnum 1) & -0.02em tracking (TrueMoney style) */
.font-num, .font-numbers, .font-mono-numbers {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum" 1;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

/* Frosted Glass Panels */
.glass-panel {
  background: rgba(13, 19, 31, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(19, 28, 46, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-hover:hover {
  background: rgba(24, 35, 58, 0.85);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

/* Tactile Numpad Buttons */
.numpad-btn {
  transition: all 0.08s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.4);
}
.numpad-btn:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  filter: brightness(0.92);
}

/* Emerald Glow Effects */
.emerald-glow {
  box-shadow: 0 0 25px -4px rgba(16, 185, 129, 0.35);
}

.emerald-glow-lg {
  box-shadow: 0 0 35px -5px rgba(16, 185, 129, 0.45), 0 0 15px rgba(52, 211, 153, 0.2);
}

/* Pulse Glow Keyframe */
@keyframes emerald-pulse {
  0%, 100% {
    box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 30px -3px rgba(16, 185, 129, 0.6), 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.pulse-glow {
  animation: emerald-pulse 3s infinite ease-in-out;
}

/* Scan Animation for OCR */
@keyframes scan-line {
  0% { top: 0%; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.8; }
}

.animate-scan-line {
  animation: scan-line 2s ease-in-out infinite alternate;
}

/* Pulse Wave for Voice */
@keyframes audio-wave {
  0%, 100% { height: 10px; }
  50% { height: 42px; }
}

.wave-bar:nth-child(1) { animation: audio-wave 0.8s ease-in-out infinite 0.1s; }
.wave-bar:nth-child(2) { animation: audio-wave 0.8s ease-in-out infinite 0.3s; }
.wave-bar:nth-child(3) { animation: audio-wave 0.8s ease-in-out infinite 0.5s; }
.wave-bar:nth-child(4) { animation: audio-wave 0.8s ease-in-out infinite 0.2s; }
.wave-bar:nth-child(5) { animation: audio-wave 0.8s ease-in-out infinite 0.4s; }

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* iOS / Fintech Style Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1E293B;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
input:checked + .toggle-slider {
  background-color: #10B981;
  border-color: #34D399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Glass Inputs & Quick Chips for Settings Modal */
.glass-input {
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease-in-out;
}
.glass-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 1px #10B981, 0 0 12px -2px rgba(16, 185, 129, 0.3);
  outline: none;
}


