/* Application styles */

@keyframes pulse-border {
  0%, 100% {
    border-color: rgb(239 68 68); /* red-500 */
  }
  50% {
    border-color: rgb(252 165 165); /* red-300 - much lighter for stronger contrast */
  }
}

/* Waffle Chart Styles */
.waffle-chart {
  position: relative;
}

.waffle-square {
  transition: all 0.2s ease-in-out;
  border-radius: 2px;
}

.waffle-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.waffle-square:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  position: relative;
}

#waffle-tooltip {
  max-width: 200px;
  word-wrap: break-word;
}

.waffle-square {
  width: 16px;
  height: 16px;
}

.waffle-ranged {
  background-color: #00C951; /* green-500 */
}

.waffle-out_of_stock {
  background-color: #fcaf17; /* canary */
}

.waffle-cut_in {
  background-color: #3b82f6; /* blue-500 */
}

.waffle-not_there {
  background-color: #e5e7eb; /* gray-200 */
}

.animate-pulse-border {
  animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes ping-every-5s {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  15% {
    transform: scale(2);
    opacity: 0;
  }
  16%, 100% {
    transform: scale(1);
    opacity: 0;
  }
}

.animate-ping-every-5s {
  animation: ping-every-5s 5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
