.wrapper {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;

  @media (min-width: 768px) {
    width: 70%;
  }

  @media (min-width: 1024px) {
    width: 50%;
  }

  .header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .addButton {
    background: #ff7f00;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;

    &:hover {
      background: #e66b00;
    }
  }

  .noProjectMessage {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #888;
    margin-top: 20px;
  }

  .projectList {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .projectItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #ddd;

    @media (max-width: 768px) {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }

  .projectTitle {
    font-size: 18px;
    font-weight: 600;

    @media (max-width: 768px) {
      font-size: 16px;
    }
  }

  .actions {
    display: flex;
    gap: 10px;

    @media (max-width: 768px) {
      width: 100%;
      justify-content: flex-end;
    }
  }

  .manageButton,
  .deleteButton {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;

    @media (max-width: 768px) {
      padding: 8px 12px;
    }
  }

  .manageButton {
    background: #27ae60;
    color: white;

    &:hover {
      background: #219150;
    }
  }

  .deleteButton {
    background: #e74c3c;
    color: white;

    &:hover {
      background: #c0392b;
    }
  }

  .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: white;
      padding: 20px;
      border-radius: 8px;
      width: 90%;
      max-width: 500px;
      text-align: center;

      @media (min-width: 768px) {
        width: 70%;
      }

      @media (min-width: 1024px) {
        width: 50%;
      }
    }
  }

  .modalTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .imageUploads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .imageUpload {
    width: 100%;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;

    &:hover {
      border-color: #ff7f00;
    }

    p {
      color: #888;
    }
  }

  .imageContainer {
    position: relative;
    width: 100%;
    height: 100%;
  }

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

  .removeImageButton {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;

    &:hover {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.1);
    }
  }

  .input,
  .textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
  }

  .textarea {
    resize: vertical;
    min-height: 100px;
  }

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

  .cancelButton {
    background: #ccc;
    color: black;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    border: none;

    &:hover {
      background: #b3b3b3;
    }
  }

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

    &:hover {
      background: #e66b00;
    }
  }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    position: relative;
    z-index: 1;

    .pageButton,
    .pageNumber {
      padding: 8px 12px;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      background: #ddd;
      transition: background 0.3s;

      &:hover {
        background: #ccc;
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
    }

    .activePage {
      background: #ff7f00;
      color: white;
    }
  }
}
