/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-amber { background-color: #fef3c7; color: #92400e; }
.badge-blue { background-color: #dbeafe; color: #1e40af; }
.badge-indigo { background-color: #e0e7ff; color: #3730a3; }
.badge-emerald { background-color: #d1fae5; color: #065f46; }
.badge-purple { background-color: #f3e8ff; color: #7c3aed; }
.badge-slate { background-color: #f1f5f9; color: #475569; }

.badge-owner {
  background: linear-gradient(135deg, #1c1917, #292524, #1c1917);
  background-size: 200% 200%;
  color: #fde047;
  border: 1.5px solid #facc15;
  text-shadow: 0 0 4px rgba(250, 204, 21, 0.4);
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.4), 0 1px 3px rgba(0,0,0,0.5);
  animation: badge-owner-shine 3s ease-in-out infinite;
}

@keyframes badge-owner-shine {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 6px rgba(250, 204, 21, 0.4), 0 1px 3px rgba(0,0,0,0.5); }
  50% { background-position: 100% 50%; box-shadow: 0 0 14px rgba(250, 204, 21, 0.7), 0 1px 4px rgba(0,0,0,0.6); }
}

/* ==================== TOAST ==================== */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .toast-container {
    bottom: 5rem;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(120%);
  opacity: 0;
  min-width: 200px;
  max-width: 360px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.toast-error { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.toast-info { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }

/* Admin menu button focus states */
.admin-nav-menu button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  z-index: 1;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 23, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 1.5rem;
  max-width: 24rem;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #475569;
  background-color: #f1f5f9;
}
