/* Custom styles - complementing Tailwind CSS */

/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.5;
}

/* Purple theme customization */
.text-purple-primary {
  color: #800080;
}

.bg-purple-primary {
  background-color: #800080;
}

/* Smoother transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Focus styles */
.focus-visible:focus {
  outline: 2px solid #800080;
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Brand card styles */
.brand-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
  transform: translateY(-2px);
}

/* Results container animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#resultsContainer.visible {
  display: block;
  animation: fadeIn 0.3s ease-out forwards;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.fresh {
  background-color: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
}

.status-badge.expired {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
}

.status-badge.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: rgb(245, 158, 11);
}

/* Menu toggle animations */
.menu-enter {
  opacity: 0;
  transform: scale(0.95);
}
.menu-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}
.menu-exit {
  opacity: 1;
  transform: scale(1);
}
.menu-exit-active {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 75ms ease-in, transform 75ms ease-in;
}

/* Batch code hint styles */
#batchCodeHint {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#batchCodeHint:not(.hidden) {
  animation: slideInUp 0.3s ease-out;
}

#batchCodeExample {
  transition: background-color 0.2s ease-in-out;
}

#batchCodeExample:hover {
  background-color: #e5e7eb;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand dropdown styles */
.brand-dropdown-visible {
  display: block !important;
}

.brand-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease-in-out;
}

.brand-item:hover,
.brand-item.active {
  background-color: #f9fafb;
}

.brand-item:last-child {
  border-bottom: none;
}

.brand-item-highlight {
  background-color: #fef3c7;
  font-weight: 600;
}




