@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-ku: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --color-bg-dark: #080c14;
  --color-surface-dark: #0f172a;
  --color-card-dark: rgba(15, 23, 42, 0.75);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--color-bg-dark);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ku);
  background-color: var(--color-bg-dark);
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}

.font-en {
  font-family: var(--font-en);
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Dark Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* App-style Card Styling & Transitions */
.service-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(59, 130, 246, 0.15);
}

/* Active card highlight state with neon glow */
.service-card.has-value {
  border-color: rgba(59, 130, 246, 0.8) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.3) !important;
}

/* Mobile App Quick buttons tactile feedback */
.quick-add-btn {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-add-btn:active {
  transform: scale(0.92);
}

/* Mobile Safe Area Padding */
.safe-bottom {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Pulse animation for live badge */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 4px #10b981); }
  50% { opacity: 0.3; transform: scale(0.8); filter: drop-shadow(0 0 1px #10b981); }
}
.animate-pulse-dot {
  animation: pulse-dot 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glow Effect */
.glow-blue {
  box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.35);
}
.glow-emerald {
  box-shadow: 0 0 25px -5px rgba(16, 185, 129, 0.35);
}

/* Subtle Shimmer for big total */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, #ffffff 0%, #93c5fd 50%, #ffffff 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
