@import "tailwindcss";

/* ============================================================
   Blue & White Theme - Tailwind v4 Custom Theme
   Style: Clean + Modern + Professional
   ============================================================ */

@theme inline {
  /* Dark Blue color palette */
  --color-brand-50: #EFF6FF;
  --color-brand-100: #DBEAFE;
  --color-brand-200: #BFDBFE;
  --color-brand-300: #93C5FD;
  --color-brand-400: #60A5FA;
  --color-brand-500: #3B82F6;
  --color-brand-600: #2563EB;
  --color-brand-700: #1D4ED8;
  --color-brand-800: #1E40AF;
  --color-brand-900: #1E3A8A;

  /* Semantic aliases - Dark Blue Theme */
  --color-background: #F8FAFC;
  --color-foreground: #1E3A8A;
  --color-primary: #1E3A8A;
  --color-secondary: #1E40AF;
  --color-accent: #2563EB;
  --color-border: #E0E7FF;
  --color-muted: #EFF6FF;
  --color-card: #FFFFFF;
  --color-card-hover: #F0F9FF;
  --color-surface: #FAFBFF;

  /* Font families */
  --font-heading: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Shadows - Dark Blue */
  --shadow-card: 0 1px 3px rgba(30, 58, 138, 0.06), 0 1px 2px rgba(30, 58, 138, 0.04);
  --shadow-card-hover: 0 10px 25px -5px rgba(30, 58, 138, 0.08), 0 4px 10px -5px rgba(30, 58, 138, 0.04);
  --shadow-elevated: 0 20px 40px -12px rgba(30, 58, 138, 0.12);
  --shadow-glow: 0 0 20px rgba(30, 64, 175, 0.15);

  /* Animation keyframes */
  --animate-fade-in: fade-in 0.3s ease-out;
  --animate-slide-up: slide-up 0.35s ease-out;
  --animate-slide-in-right: slide-in-right 0.3s ease-out;
  --animate-scale-in: scale-in 0.2s ease-out;
  --animate-bounce-in: bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --animate-pulse-soft: pulse-soft 2s ease-in-out infinite;
  --animate-cart-add: cart-add 0.3s ease-out;
  --animate-shimmer: shimmer 2s linear infinite;
  --animate-slide-up-modal: slide-up-modal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --animate-float: float 3s ease-in-out infinite;
}

/* Keyframes */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes cart-add {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes check-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(20px) rotate(360deg); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slide-up-modal {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Base styles */
html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Scrollbar styling for the dark blue aesthetic */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2563EB;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1E3A8A;
}

/* Custom focus ring */
*:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
button, a, input, select, textarea {
  transition: all 150ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Mobile bottom sheet drag handle */
.drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #2563EB;
  margin: 0 auto;
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(224, 231, 255, 0.6);
}

/* Shimmer loading placeholder */
.shimmer {
  background: linear-gradient(90deg, #EFF6FF 25%, #DBEAFE 50%, #EFF6FF 75%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card shadow on hover */
.card-hover {
  transition: all 200ms ease;
}
.card-hover:hover {
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.08), 0 4px 10px -5px rgba(30, 58, 138, 0.04);
  transform: translateY(-1px);
}

/* Print styles */
@media print {
  body * {
    visibility: hidden;
  }
  #receipt, #receipt * {
    visibility: visible;
  }
  #receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ============================================================
   APP MAIN CONTENT LAYOUT
   ============================================================ */
.app-main-content {
    height: 100%;
    padding-top: 56px;
}

@media (min-width: 1024px) {
    .app-main-content {
        padding-top: 0px;
    }
}
