/* Custom Styles for Billion App */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap');

:root {
  --font-sarabun: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Prompt', 'Sarabun', sans-serif;
}

body {
  font-family: var(--font-sarabun);
  background: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-header {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradients */
.btn-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.25s ease;
}
.btn-gradient-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-gradient-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  transition: all 0.25s ease;
}
.btn-gradient-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  transition: all 0.25s ease;
}
.btn-gradient-emerald:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-gradient-rose {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  transition: all 0.25s ease;
}
.btn-gradient-rose:hover {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
}

.btn-gradient-cyan {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  transition: all 0.25s ease;
}
.btn-gradient-cyan:hover {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card hover glow */
.card-interactive {
  transition: all 0.25s ease;
}
.card-interactive:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

/* Form input focus */
.form-input-focus {
  transition: all 0.2s ease;
}
.form-input-focus:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

/* Monospace font for numbers */
.font-mono-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.05em;
}

/* SweetAlert2 Custom Dark Theme */
.swal2-popup.billion-swal {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  font-family: var(--font-sarabun) !important;
}
.swal2-title.billion-swal-title {
  color: #f8fafc !important;
  font-family: var(--font-heading) !important;
}

/* Lightbox overlay */
.lightbox-modal {
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(8px);
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .glass-panel, .glass-card {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}
