@keyframes breathing {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  padding: 1rem 3rem;
  font-size: 14px;
  border-bottom: 1px solid var(--color-divider-subtle);

  .collection-info {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    max-width: 400px;

    .collection-title-row {
      margin-bottom: 4px;
    }

    .collection-name {
      font-size: 16px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.9);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .status-badge {
      font-size: 12px;
      padding: 2px 8px;
      border-radius: 12px;
      font-weight: 500;
      color: white;

      &.status-new {
        background-color: #22c55e;
      }
      &.status-processing {
        background-color: #f97316;
        animation: breathing 2s infinite ease-in-out;
      }
      &.status-completed {
        background-color: #685fff;
      }
      &.status-failed {
        background-color: #ef4444;
      }
    }

    .embedding-info {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);

      .label {
        color: rgba(255, 255, 255, 0.5);
        margin-right: 4px;
      }
      .value {
        color: rgba(255, 255, 255, 0.8);
        background-color: rgba(30, 30, 30, 0.6);
        padding: 2px 8px;
        border-radius: 4px;
      }
    }
  }

  .header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;

    .header-search {
      border: 1px solid var(--gray-700);
      height: 32px;
      width: 200px;
      &:focus {
        border-color: var(--accent-color, #685fff);
      }
    }

    .upload-button {
      padding: 6px 14px;
      background-color: transparent;
      border: 1px solid var(--accent-color, #685fff);
      border-radius: 8px;
      color: var(--accent-color, #685fff);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      height: 32px;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 6px;

      &:hover {
        background-color: rgba(104, 95, 255, 0.1);
      }
      svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
      }
    }
  }
}
