/* Página Song Requests - Dumont App */

body.app-layout .container-app.song-requests-container-app {
  position: relative;
}

body.app-layout .container-app.song-requests-container-app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: -1;
}

.song-request-container {
  padding: 20px 32px;
  background: white;
}

.song-request-subtitle {
  font-size: 16px;
  font-weight: 950;
  color: #060536;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.4;
  padding: 0 5px;
}

.song-request-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.song-request-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  background: #d9d9d9;
  border-radius: 0;
  color: #338ab3;
  font-weight: 900;
  box-sizing: border-box;
}

.song-request-input::placeholder {
  color: #338ab3;
  opacity: 1;
  font-weight: 900;
}

.song-request-input:focus {
  outline: none;
  background: #d0d0d0;
}

.song-request-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  background: #1b96d1;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background 0.2s ease;
  margin-top: 4px;
  box-sizing: border-box;
}

.song-request-submit:active {
  background: #1580b5;
  transform: scale(0.98);
}

/* Lista de Resultados */
.song-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.song-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-bottom: 2px solid #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.song-result-item:active {
  background: #e0e0e0;
}

.song-result-artwork {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.song-result-info {
  flex: 1;
  min-width: 0;
}

.song-result-track {
  font-size: 15px;
  font-weight: 700;
  color: #060536;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-result-artist {
  font-size: 14px;
  font-weight: 600;
  color: #338ab3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-results-empty {
  text-align: center;
  padding: 40px 20px;
}

.song-results-empty p {
  color: #666;
  margin-bottom: 24px;
  font-size: 16px;
}

/* Página de Confirmação */
.song-confirm-info {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f8f8;
  text-align: center;
}

.song-confirm-artwork {
  margin-bottom: 16px;
}

.song-confirm-artwork img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.song-confirm-artist {
  font-size: 18px;
  font-weight: 700;
  color: #338ab3;
  margin-bottom: 8px;
}

.song-confirm-track {
  font-size: 20px;
  font-weight: 900;
  color: #060536;
}

/* Mensagens de feedback */
.song-request-message {
  padding: 16px;
  border-radius: 4px;
  margin: 16px;
  text-align: center;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

.song-request-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.song-request-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (min-width: 768px) {
  .song-request-container {
    padding: 30px 20px;
  }

  .song-request-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .song-request-form {
    gap: 20px;
  }

  .song-request-input,
  .song-request-submit {
    font-size: 18px;
    padding: 18px;
  }
}

/* ========================================
   MODAL DE PEDIDO MUSICAL - DESKTOP
   ======================================== */

.song-request-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.song-request-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.song-request-modal-overlay.hidden {
  display: none;
}

.song-request-modal-box {
  background: #2ea9e3;
  width: 90%;
  max-width: 620px;
  padding: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.song-request-modal-overlay.active .song-request-modal-box {
  transform: scale(1);
}

.song-request-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}

.song-request-modal-close:hover {
  color: white;
}

.song-request-modal-close svg {
  width: 20px;
  height: 20px;
}

.song-request-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: white;
  text-align: left;
  margin: 0;
  padding: 15px 25px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #2a9acf;
}

.song-request-modal-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-align: left;
  line-height: 1.4;
}

.song-request-modal-search-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px 25px 30px 25px;
}

.song-request-modal-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: none;
  background: white;
  border-radius: 0;
  color: #333;
  font-weight: 400;
  box-sizing: border-box;
  font-family: 'Nunito Sans', sans-serif;
}

.song-request-modal-input::placeholder {
  color: #999;
  opacity: 1;
  font-weight: 400;
}

.song-request-modal-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Resultados */
.song-request-modal-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px 25px 30px 25px;
}

.song-request-modal-results-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  background: white;
}

.song-request-modal-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.song-request-modal-result-item:hover {
  background: #f8f8f8;
}

.song-request-modal-result-item:last-child {
  border-bottom: none;
}

.song-request-modal-result-artwork {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.song-request-modal-result-info {
  flex: 1;
  min-width: 0;
}

.song-request-modal-result-track {
  font-size: 15px;
  font-weight: 700;
  color: #060536;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-request-modal-result-artist {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Confirmação */
.song-request-modal-confirm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px 25px 30px 25px;
}

.song-request-modal-confirm-info {
  margin-bottom: 0;
  padding: 30px;
  background: white;
  text-align: center;
}

.song-request-modal-confirm-artwork {
  margin-bottom: 20px;
}

.song-request-modal-confirm-artwork img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.song-request-modal-confirm-artist {
  font-size: 18px;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
}

.song-request-modal-confirm-track {
  font-size: 22px;
  font-weight: 900;
  color: #060536;
}

.song-request-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 0;
  justify-content: flex-end;
}

.song-request-modal-btn {
  flex: 0 0 auto;
  min-width: 100px;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.song-request-modal-btn-cancel {
  background: white;
  color: #2ea9e3;
}

.song-request-modal-btn-cancel:hover {
  background: #f0f0f0;
}

.song-request-modal-btn-submit {
  background: #0d6eaa;
  color: white;
}

.song-request-modal-btn-submit:hover {
  background: #0a5888;
}

.song-request-modal-btn-submit:disabled {
  background: #6ba5c9;
  cursor: not-allowed;
}

.song-request-modal-btn-back {
  background: white;
  color: #2ea9e3;
}

.song-request-modal-btn-back:hover {
  background: #f0f0f0;
}

.song-request-modal-message {
  padding: 15px 20px;
  margin: 20px 25px 0 25px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  animation: slideDown 0.3s ease;
  border-radius: 4px;
}

.song-request-modal-message.success {
  background: white;
  color: #155724;
  border: 2px solid #28a745;
}

.song-request-modal-message.error {
  background: white;
  color: #721c24;
  border: 2px solid #dc3545;
}

.song-request-modal-message.hidden {
  display: none;
}
