/* 
 * Pantry Stock Inventory - Custom Styling
 * Font: Prompt & Plus Jakarta Sans
 */

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

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --accent: #f59e0b;
  --danger: #ef4444;
}

body {
  font-family: 'Prompt', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* Pulse animation for urgent low stock badge */
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Glowing warning banner */
.warning-glow {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

/* Glassmorphism subtle effects */
.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile responsive bottom navigation */
.mobile-bottom-nav {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card hover transition */
.inventory-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inventory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Quick Action Chips */
.qty-quick-btn {
  transition: all 0.15s ease;
}

.qty-quick-btn:active {
  transform: scale(0.95);
}

/* Progress Bar for Stock Health */
.stock-progress-track {
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  height: 6px;
}

.stock-progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
}

/* Toast Notification Animation */
@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.toast-animate {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
