/* Numera.lk - Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --primary: #1e3a8a;       /* Deep Navy */
  --primary-dark: #0f172a;  /* Slate 900 */
  --accent: #2563eb;        /* Royal Blue */
  --accent-cyan: #06b6d4;   /* Electric Cyan */
  --accent-emerald: #10b981;/* Emerald Green */
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-mono-numbers {
  font-family: 'JetBrains Mono', monospace;
}

.font-lcd {
  font-family: 'Orbitron', monospace;
}

/* Header Navigation single-line enforcement */
header nav a,
header button {
  white-space: nowrap !important;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

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

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

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Product Card Hover */
.product-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Calculator Simulator Widget */
.calc-display {
  background: #9db29a;
  color: #172516;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
  text-shadow: 1px 1px 0px rgba(255,255,255,0.2);
}

.calc-key {
  transition: all 0.1s ease;
  user-select: none;
}
.calc-key:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

/* Badges */
.badge-verified {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-exam {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Animation utilities */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.pulse-subtle {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Printable Invoice Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-receipt, #printable-receipt * {
    visibility: visible;
  }
  #printable-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
  }
  .no-print {
    display: none !important;
  }
}

/* Hologram Warranty Sticker */
@keyframes hologramGlow {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(90deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}
.hologram-seal {
  background: linear-gradient(135deg, #10b981, #06b6d4, #ec4899, #f59e0b, #10b981);
  background-size: 300% 300%;
  animation: hologramGlow 4s ease infinite;
}
