﻿:root{
  /* Money / food palette */
  --bg: #F6FBF6;            /* page background */
  --card-bg: #FFFFFF;
  --card-border: #E7F3E8;
  --accent: #2F9E44;        /* green accent */
  --food-accent: #FF7A18;   /* orange for food items */
  --muted: #6c757d;
  --low: #DC3545;
  --warn: #FFC107;
}

/* Page baseline */
body, .content {
  background-color: var(--bg);
}

/* Inventory grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 0.25rem;
}

/* Card */
.inventory-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.6rem;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.04);
  display: flex;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 100px;
}
.inventory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(18,38,63,0.08);
}

/* Food variant */
.inventory-card.food {
  border-color: rgba(255,122,24,0.25);
  background: linear-gradient(180deg,#fff,#fff7ef);
}

/* Image */
.inventory-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 0.6rem;
  background: linear-gradient(180deg,#fff,#f8f9fa);
  flex: 0 0 96px;
  display: block;
}

/* Card body */
.inventory-card .card-body {
  padding: 0.6rem 0.75rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title / meta */
.inventory-card h5 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
}
.inventory-card .muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Stock bar */
.stock {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.stock-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #66bb6a);
  transition: width 0.25s ease;
}

/* Waste progress style */
.progress .progress-bar {
  height: 0.8rem;
  line-height: 0.8rem;
  font-size: 0.75rem;
}

/* Buttons */
.inventory-card .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}
.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Low and warning highlights */
.inventory-card.low {
  border-color: rgba(220,53,69,0.25);
  box-shadow: 0 0 0 4px rgba(220,53,69,0.04);
}
.inventory-card.food.low {
  border-color: rgba(230,91,23,0.35);
  box-shadow: 0 0 0 4px rgba(230,91,23,0.06);
}

/* Responsive tweaks */
@media (max-width: 576px){
  .inventory-grid { grid-template-columns: 1fr; }
  .inventory-image { width: 84px; height: 84px; flex: 0 0 84px; }
}
