@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --navy-deep: #071626;
  --navy-main: #0c233a;
  --navy-light: #163656;
  --royal-blue: #2563eb;
  --royal-dark: #1d4ed8;
  --gold-accent: #f59e0b;
  --emerald-accent: #10b981;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  margin: 0;
  color: #0f172a;
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-nav {
  background: rgba(12, 35, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-card-dark {
  background: rgba(15, 39, 68, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Subtle background pattern */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
}

.bg-dot-pattern {
  background-size: 20px 20px;
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
}

/* Typography Helpers */
.font-editorial {
  font-family: var(--font-serif);
}

.font-mono-accent {
  font-family: var(--font-mono);
}

/* Keyframes & Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

@keyframes shineSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

.shine-effect {
  position: relative;
  overflow: hidden;
}
.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shineSlide 4.5s infinite;
}

/* Reveal transition on scroll */
.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Checkbox & Radio */
input[type="checkbox"], input[type="radio"] {
  accent-color: #2563eb;
}

/* File Upload Drop Area Highlight */
.dropzone-active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
}

/* Receipt Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, header, footer, .form-stepper, button {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .print-receipt-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
