/* ==========================================================================
   ZIGMA EXCHANGE - Premium Currency Exchange Design System
   Color Palette: White, Light Grey (#F8F9FA, #F3F4F6), Charcoal Slate (#14171A, #1E2328), 
                  Signature Taupe (#B49679) with warm champagne accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

:root {
  /* Brand palette — based on the logo's signature #B49679 */
  --gold-100: #F3ECE5;
  --gold-200: #E7D8CA;
  --gold-300: #D8C0A9;
  --gold-400: #C6A889;
  --gold-500: #B49679;
  --gold-600: #98785C;
  --gold-700: #795B42;
  --gold-800: #5C432F;
  --gold-gradient: linear-gradient(135deg, #E7D8CA 0%, #C6A889 40%, #B49679 75%, #795B42 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(180, 150, 121, 0.14) 0%, rgba(198, 168, 137, 0.05) 100%);
  --gold-gradient-card: linear-gradient(145deg, #232931 0%, #171A1E 100%);
  --gold-glow: 0 0 25px rgba(180, 150, 121, 0.35);
  --gold-glow-sm: 0 0 12px rgba(180, 150, 121, 0.25);

  /* Backgrounds & Neutrals */
  --bg-body: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F3F5;
  --bg-dark-slate: #14171A;
  --bg-dark-card: #1C2025;
  --bg-dark-counter: #121417;

  /* Text Colors */
  --text-main: #1C2025;
  --text-muted: #6C757D;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;
  --text-gold: #98785C;

  /* Borders & Shadows */
  --border-light: #E5E7EB;
  --border-gold: rgba(180, 150, 121, 0.35);
  --border-gold-solid: #B49679;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 10px 30px rgba(180, 150, 121, 0.2);

  /* Status Colors */
  --rate-up: #10B981;
  --rate-up-bg: rgba(16, 185, 129, 0.1);
  --rate-down: #EF4444;
  --rate-down-bg: rgba(239, 68, 68, 0.1);

  /* Typography */
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-th: 'Prompt', 'Plus Jakarta Sans', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-th);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Luxury Typography & Gradients */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
}

.border-gold-glow {
  border-color: var(--border-gold);
  box-shadow: var(--gold-glow-sm);
}

.gold-glow-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-glow-hover:hover {
  box-shadow: 0 8px 25px rgba(180, 150, 121, 0.28);
  transform: translateY(-2px);
}

/* Light Grey & Soft Gold Luxury Panels */
.light-grey-panel {
  background: linear-gradient(145deg, #FFFFFF 0%, #F1F3F5 50%, #E9ECEF 100%);
  position: relative;
}
.light-grey-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.counter-backlight {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(180, 150, 121, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F3F5;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

/* Live Rate Ticker Animations */
@keyframes tickerAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerAnimation 40s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* Pulse Animation for Live Indicator */
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.live-dot {
  animation: pulseLive 2s infinite ease-in-out;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.glass-card-dark {
  background: rgba(20, 23, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(180, 150, 121, 0.25);
}

/* Table Rate Row Styling */
.rate-row {
  transition: all 0.2s ease;
}
.rate-row:hover {
  background-color: rgba(180, 150, 121, 0.08);
}

/* Rate Change Flash Animation */
@keyframes flashGreen {
  0% { background-color: rgba(16, 185, 129, 0.3); }
  100% { background-color: transparent; }
}
@keyframes flashRed {
  0% { background-color: rgba(239, 68, 68, 0.3); }
  100% { background-color: transparent; }
}
.rate-flash-up {
  animation: flashGreen 1.2s ease;
}
.rate-flash-down {
  animation: flashRed 1.2s ease;
}

/* Custom Button Styles */
.btn-gold {
  background: var(--gold-gradient);
  color: #14171A;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 80%
  );
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.6s ease;
}
.btn-gold:hover::after {
  transform: translateX(100%) rotate(25deg);
}
.btn-gold:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline-gold {
  border: 1.5px solid var(--gold-500);
  color: var(--gold-600);
  background: transparent;
  transition: all 0.25s ease;
}
.btn-outline-gold:hover {
  background: var(--gold-500);
  color: #14171A;
  box-shadow: var(--gold-glow-sm);
}

/* Flag Icon Container */
.flag-img {
  width: 30px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: inline-block;
  vertical-align: middle;
}

/* Number display styling */
.font-numeric {
  font-family: var(--font-en);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Custom Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Print Friendly Styles for Daily Rate Sheet */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .no-print, header, footer, #calculator, #trends, #booking-section, #contact-branches, .marquee-banner, .action-buttons {
    display: none !important;
  }
  #rates-board {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .print-header {
    display: block !important;
    margin-bottom: 20px;
    text-align: center;
  }
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  th, td {
    border: 1px solid #ccc !important;
    padding: 6px 10px !important;
    font-size: 10pt !important;
  }
}
