.song-list {
  display: block;
}

.song-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  cursor: move;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);

  .drag-handle {
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
  }

  .song-info {
    display: flex;
    align-items: center;
    gap: 8px;

    .canto-number {
      background: rgba(var(--ion-color-secondary-rgb), 0.1);
      color: var(--ion-color-secondary);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.8rem;
      font-weight: 700;
    }

    .song-title {
      font-weight: 500;
      color: white;
    }
  }
}

.cdk-drag-preview {
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
              0 8px 10px 1px rgba(0, 0, 0, 0.14),
              0 3px 14px 2px rgba(0, 0, 0, 0.12);
  background: #1e1e1e;
  padding: 12px;
  display: flex;
  align-items: center;
  color: white;
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.song-list.cdk-drop-list-dragging .song-item:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.header-info {
  padding: 12px;
  border-radius: 12px;
  p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
  }
}

.empty-state {
  margin-top: 100px;
  .large-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
  }
  p {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
  }
}

.qr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);

  .qr-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    color: #000;

    .qr-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      h3 { margin: 0; text-align: left; }
    }

    p {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 24px;
      text-align: left;
    }

    .qr-img-container {
      background: #f8f8f8;
      padding: 16px;
      border-radius: 16px;
      margin-bottom: 24px;
      img {
        width: 100%;
        height: auto;
        display: block;
      }
    }

    .qr-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
  }
}

.save-export-fab {
  --border-radius: 30px;
  width: auto;
  min-width: 160px;
  
  .fab-content {
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    
    ion-icon {
      font-size: 1.4rem;
    }
    
    .fab-label {
      font-size: 0.9rem;
      font-weight: 600;
      text-transform: none;
    }
  }
}

:host-context(body.high-contrast) {
  .song-item {
    background: #ffffff !important;
    border-color: #000000 !important;
    .song-title { color: #000000 !important; }
    .drag-handle { color: #000000 !important; }
  }
  .header-info p { color: #000000 !important; }
}
