/* ===== Global ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #ffe4f0, #f3e8ff, #e0f0ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
}

/* ===== Card ===== */
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: fadeIn 0.6s ease;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.button-row > * {
  flex: 1 1 160px;
}

.nav-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

form.button-row {
  flex-direction: column;
  align-items: stretch;
}

form.button-row > * {
  width: 100%;
  flex: none;
}

.nav-menu,
#authForms {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-menu {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.button-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #7c3aed;
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

button:not(.button-inline) {
  width: 100%;
}

.button-inline:hover,
button:hover {
  background: #6d28d9;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.button-inline:active,
button:active {
  transform: translateY(0);
}

.button-inline:disabled,
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* modifier for wider cards (admin / lists) */
.card--wide {
  max-width: 960px;
  padding: 24px;
}

/* ===== Headline ===== */
.card h1,
.card h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 16px;
}

.card p {
  text-align: center;
  color: #555;
  margin-bottom: 24px;
}

/* ===== Inputs ===== */
label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #fff;
  margin-top: 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
  outline: none;
}

/* ===== Button ===== */
button {
  width: 100%;
  padding: 14px;
  background: #7c3aed;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

button:hover {
  background: #6d28d9;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* ===== Text Link Button ===== */
.button-text-link {
  display: inline;
  width: auto !important;
  padding: 0 !important;
  background: none !important;
  color: #7c3aed;
  border: none !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  box-shadow: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

.button-text-link:hover {
  color: #6d28d9;
  transform: none !important;
}

.button-text-link:active {
  transform: none !important;
}

.song-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.song-item .details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.song-item .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .song-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.submission-item {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.1);
  transition: background 0.2s ease;
}

.submission-item:hover {
  background: rgba(124, 58, 237, 0.07);
}

.submission-item:last-child {
  margin-bottom: 0;
}

.submission-item .song-info {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.submission-item .song-info .song-title {
  font-weight: 600;
  color: #3730a3;
}

.submission-item .song-info .song-artist {
  font-weight: 400;
  color: #6b7280;
}

.submission-item .submission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.submission-item .submission-actions .btn-inline--small {
  font-size: 13px;
  color: #7c3aed;
  padding: 4px 8px;
  border-radius: 6px;
}

.submission-item .submission-actions .btn-inline--small:hover {
  background: rgba(124, 58, 237, 0.08);
}

/* ===== Result Message ===== */
#result {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.success {
  color: #16a34a;
}

.error {
  color: #dc2626;
}

.suggestions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.suggestion-item {
  padding: 12px;
  border-radius: 14px;
  background: #f8f5ff;
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #1f2937;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: left;
  font-weight: normal;
}

.suggestion-item:hover {
  background: #e9e5ff;
  border-color: #c4b5fd;
  color: #1f2937;
  transform: translateY(-1px);
}

.selected-track {
  padding: 16px;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid #a78bfa;
  color: #3730a3;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.badge--pending { background: #fef3c7; color: #92400e; }
.badge--approved { background: #dcfce7; color: #166534; }
.badge--rejected { background: #fee2e2; color: #991b1b; }

.btn-inline--small {
  padding: 8px 12px;
  font-size: 14px;
  min-width: 90px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 90%;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(55, 65, 81, 0.95);
  color: white;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
