[x-cloak] {
  display: none !important;
}

/* --- Form & Input CSS --- */
.search-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.search-icon-wrapper {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
}

.search-icon-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-input {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  outline: none;
  border-color: #1db954; /* Spotify Green */
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2); /* Subtle green glow */
}

/* --- Messages CSS --- */
.messages-container {
  margin-bottom: 1.25rem; /* Equivalent to mb-5 */
  min-height: 1.5rem; /* Prevents layout shift when messages appear/disappear */
}

.alert-error {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 77, 79, 0.2);
}

.alert-warning {
  color: #fadb14;
  background: rgba(250, 219, 20, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(250, 219, 20, 0.2);
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
