
:root {
  --primary-color: #570df8;
  --secondary-color: #f000b8;
  --accent-color: #37cdbe;
}

/* Custom animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card animations */
.card {
  animation: slideIn 0.3s ease-out;
}

/* Checkbox custom styling */
.checkbox:checked {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Button hover effects */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Custom utility classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Alert custom styles */
.alert {
  border-left: 4px solid currentColor;
}

/* Stats card enhancement */
.stats {
  background: #667eea;
  color: white;
}

.stat-title {
  color: rgba(255, 255, 255, 0.8);
}

.stat-value {
  color: white !important;
}

/* Form control spacing */
.form-control + .form-control {
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* HTMX loading states */
.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-indicator {
  display: none;
}

/* Loading spinner */
.htmx-indicator::after {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Option box styling */
.form-control .label {
  background-color: var(--color-base-100);
  border: 2px solid var(--color-base-300);
  border-radius: var(--radius-box);
  padding: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  justify-content: space-between !important;
  min-height: 4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control .label:hover {
  border-color: var(--color-primary);
  background-color: oklch(var(--b3));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.form-control .label.label-checked {
  border-color: var(--color-primary);
  background-color: color-mix(in srgb, var(--color-primary) 10%, var(--color-base-100));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Left side content (logo and text) */
.option-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex: 1;
}

.option-content .label-text {
  text-align: left;
  flex: 1;
}

/* Checkbox positioning on the right */
.form-control .checkbox {
  order: 2;
  margin-left: auto;
}

/* Game icon containers */
.game-icon-container {
  border-radius: 0.25rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  width: 2rem;
  height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.game-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.game-icon-large-container {
  border-radius: 0.25rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon-large {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

/* Game header */
.game-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Selected items container */
.selected-items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
  padding: 0.5rem;
  background-color: var(--color-base-100);
  border-radius: var(--radius-box);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  z-index: 10;
  width: 100%;
  background-color: oklch(var(--b1));
  border-radius: var(--rounded-box, 0.5rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid oklch(var(--bc) / 0.2);
  margin-top: 0.25rem;
  display: none;
  max-height: 16rem;
  overflow-y: auto;
}

.dropdown-loading {
  padding: 1rem;
  text-align: center;
}

.dropdown-no-results {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
  display: none;
}

/* League/Team item styling */
.item-icon-container {
  border-radius: 0.25rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.item-icon-badge {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

/* Badge styling */
.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
}

/* Add more padding to badges so the colored container is larger than the icon */
.selected-items-container .badge {
  padding: 1rem 1.25rem;
  font-size: 1rem;
}
