.floating-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;

  &:hover {
    background-color: #0056b3;
  }
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1010;
}

.collections-window {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;

  height: 80%;

  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s ease-out;

  .collections-result {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 0px;
  }

  table {
    th,
    td,
    thead {
      text-align: center;
      align-content: center;
      font-size: 14px;
    }
    thead {
      position: sticky;
      top: 0;
      background-color: white;
      border-bottom: 1px solid #ddd;
      z-index: 1;
    }
    tr,th {
      border-bottom: 1px solid #ddd;
    }
    td {
      padding: 4px;
      img {
        --size: 200px;
        width: var(--size);
        height: calc(var(--size) / 1.6);
        object-fit: cover;
        vertical-align: middle;
      }
    }
  }

  #paginator {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    
    span {
      margin: 0 10px;
      align-self: center;
    }

    button {
      margin: 0 5px;
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
      background-color: #007bff;
      color: white;
      cursor: pointer;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #0056b3;
      }
    }
  }
}

.delete-button {
  color: white;
  background-color: #f00;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease; /* 添加过渡效果 */
  display: inline-block;
  white-space: nowrap;

  &:hover {
    background-color: #8b0000; /* 暗红色 */
  }
}
