/* Custom styles for Diageo On-Trade Activation & Sell-in Portal */

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Navbar Tab States */
.nav-tab {
  color: #cbd5e1;
}
.nav-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}
.nav-tab.active {
  color: #0b0f17;
  background: linear-gradient(135deg, #e5c384 0%, #c89d54 100%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(200, 157, 84, 0.35);
}

/* Category Card Active State */
.category-card.active {
  border-color: #c89d54;
  background-color: #fffdf8;
  box-shadow: 0 8px 24px -6px rgba(200, 157, 84, 0.25);
}

/* Admin Tab States */
.admin-tab,
.report-mode-tab {
  color: #475569;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}
.admin-tab:hover,
.report-mode-tab:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}
.admin-tab.active,
.report-mode-tab.active {
  color: #e5c384;
  background-color: #0b0f17;
  border-color: #0b0f17;
}

/* Photo Dropzone & Thumbnails */
.photo-dropzone {
  border: 2px dashed #cbd5e1;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.photo-dropzone:hover,
.photo-dropzone.dragover {
  border-color: #c89d54;
  background-color: #fffbeb;
}

/* Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.animate-scale-in {
  animation: scaleIn 0.2s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.toast-enter {
  animation: slideInRight 0.22s ease-out forwards;
}

/* Mobile tap highlight cleanup, touch ergonomics & accessibility */
button,
a,
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
[role="button"],
select,
summary {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid #c89d54;
  outline-offset: 2px;
}

#outlet-autocomplete-list,
#success-modal,
#lightbox-modal,
#zip-progress-modal {
  overscroll-behavior-y: contain;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
