/* Space for the fixed floating bar at bottom */
body {
  padding-bottom: 80px !important;
}

.rack-separator {
  border-top: 2px dashed #ccc;
  margin: 20px 0;
  width: 100%;
} 

/* Grocery View Styles */
.grocery-view-container {
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  min-height: 70vh;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.grocery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grocery-bin-card {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
}

.grocery-bin-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="%23ffffff" opacity="0.1"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.grocery-bin-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.grocery-bin-card.critical {
  background: linear-gradient(145deg, #ff6b6b, #ff5252);
  color: white;
  border-color: #ff1744;
  animation: pulse-critical 2s infinite;
}

.grocery-bin-card.warning {
  background: linear-gradient(145deg, #ffd54f, #ffb300);
  color: #5d4037;
  border-color: #ff8f00;
}

.grocery-bin-card.good {
  background: linear-gradient(145deg, #81c784, #66bb6a);
  color: white;
  border-color: #4caf50;
}

.grocery-bin-card .product-name {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.grocery-bin-card .percentage {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  text-stroke: 2px rgba(0, 0, 0, 0.2);
}

.grocery-bin-card .stock-level {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 600;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grocery-bin-card .bin-details {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
  z-index: 2;
}

@keyframes pulse-critical {
  0% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 23, 68, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 12px 35px rgba(255, 23, 68, 0.5); }
  100% { transform: scale(1); box-shadow: 0 8px 25px rgba(255, 23, 68, 0.3); }
}

.grocery-bin-card .grain-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  opacity: 0.6;
  z-index: 2;
}

.grocery-bin-card.critical .grain-icon {
  color: rgba(255, 255, 255, 0.8);
}

.grocery-bin-card.warning .grain-icon {
  color: rgba(93, 64, 55, 0.8);
}

.grocery-bin-card.good .grain-icon {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grocery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  
  .grocery-bin-card .product-name {
    font-size: 1.5rem;
  }
  
  .grocery-bin-card .percentage {
    font-size: 2.5rem;
  }
}