/* Meal2Grocery — Custom styles (Tailwind handles the rest) */

/* Scrollbar hiding for horizontal chip rows (both class names used across views) */
.scrollbar-hide::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar { display: none; }
.scrollbar-hide,
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }

/* Page fade-in */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.page-enter { animation: fadeIn 0.15s ease-out forwards; }

/* Bottom sheet */
.bottom-sheet {
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  overflow-y: auto;
}
.bottom-sheet-backdrop {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 440px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  pointer-events: auto;
  animation: toastIn 0.2s ease-out both;
  width: 100%;
}
.toast-success { background: #006a42; }
.toast-error   { background: #ba1a1a; }
.toast-warning { background: #ca8a04; }
@keyframes toastIn  { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateY(8px); } }
.toast.removing { animation: toastOut 0.2s ease-in both; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #efeded 25%, #e3e2e2 50%, #efeded 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Grocery item checked state */
.grocery-item-checked .item-name {
  text-decoration: line-through;
  color: #6f7a71;
}

/* FAB */
.fab {
  box-shadow: 0 4px 16px rgba(0, 106, 66, 0.35);
}

/* Minimum tap targets */
button, a, input[type="checkbox"], input[type="radio"] {
  min-height: 44px;
  min-width: 44px;
}
input[type="checkbox"], input[type="radio"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
}

/* Form inputs */
.form-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #bec9bf;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: #1b1c1c;
}
.form-input:focus {
  border-color: #006a42;
  box-shadow: 0 0 0 3px rgba(0, 106, 66, 0.12);
}
.form-input.error {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.10);
}

/* Card */
.card {
  background: #ffffff;
  border: 1px solid #bec9bf;
  border-radius: 16px;
}

/* Primary button */
.btn-primary {
  width: 100%;
  height: 56px;
  background: #006a42;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover  { background: #005232; }

/* Secondary button */
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  background: transparent;
  color: #006a42;
  border: 1px solid #bec9bf;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: #f5f3f3; }
