.pageButton {
  padding: 1rem;
  font-size: 1.1rem;
  background-color: #f9a22e;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.updateCatalogContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: auto;
  width: 100%;

  .outerBox {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;

    h1 {
      font-size: 2rem;
      font-weight: bold;
      color: #333333;
      margin-bottom: 10px;
    }

    .infoText {
      font-size: 1rem;
      color: #666666;
      margin-bottom: 20px;
      text-align: center;
    }

    .errorMessage {
      color: #ff0000;
      font-size: 1rem;
      margin-bottom: 10px;
    }

    .successMessage {
      color: #00cc00;
      font-size: 1rem;
      margin-bottom: 10px;
    }

    .addButton {
      background-color: #ff7f00;
      color: #ffffff;
      padding: 10px 20px;
      font-size: 1rem;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      margin-bottom: 20px;
      transition: background-color 0.3s ease;

      &:hover {
        background-color: #e66b00;
      }
    }

    .catalogList {
      width: 100%;
      max-height: 300px;
      overflow-y: auto;
      margin-bottom: 20px;

      .catalogItem {
        display: flex;
        align-items: center;
        padding: 10px;
        border: 1px solid #cccccc;
        border-radius: 8px;
        margin-bottom: 10px;
        background-color: #f5f5f5;
        cursor: grab;

        .dragHandle {
          margin-right: 10px;
          cursor: grab;
          color: #666666;
        }

        .previewImage {
          width: 60px;
          height: 60px;
          margin-right: 10px;
          object-fit: cover;
          border-radius: 8px;
        }

        p {
          flex: 1;
          margin: 0;
          font-size: 0.9rem;
          color: #333333;
        }

        .deleteIcon {
          color: #ff0000;
          cursor: pointer;
          transition: color 0.3s ease;

          &:hover {
            color: #cc0000;
          }
        }
      }
    }

    .modalOverlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;

      .modalContent {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 10px;
        width: 400px;
        text-align: center;

        h3 {
          font-size: 1.5rem;
          margin-bottom: 20px;
          color: #333333;
        }

        .uploadArea {
          background-color: #f5f5f5;
          border: 2px dashed #cccccc;
          border-radius: 10px;
          padding: 20px;
          margin-bottom: 20px;
          cursor: pointer;

          &.drag {
            background-color: lightgray;
            border-color: blue;
          }

          .filePreview {
            display: flex;
            flex-direction: column;
            align-items: center;

            .previewContainer {
              position: relative;

              .previewImage {
                width: 80px;
                height: 80px;
                object-fit: cover;
                border-radius: 8px;
              }

              .removeIcon {
                position: absolute;
                top: 0;
                right: 0;
                background-color: #ffffff;
                color: #ff0000;
                border-radius: 50%;
                padding: 4px;
                cursor: pointer;
                font-size: 1rem;
              }
            }

            p {
              margin-top: 10px;
              font-size: 0.9rem;
              color: #333333;
            }
          }

          .uploadPlaceholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
            color: #555555;
            cursor: pointer;

            .uploadIcon {
              font-size: 2rem;
              color: #ff7f00;
            }

            .hiddenInput {
              display: none;
            }
          }
        }

        .modalActions {
          display: flex;
          justify-content: center;
          gap: 10px;

          .cancelButton {
            background-color: #ff0000;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
          }

          .confirmButton {
            background-color: #ff7f00;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
          }
        }
      }
    }
  }
}
