.adp_myauction_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Grid layout */
.adp_myauction_grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1000px) {
  .adp_myauction_grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card styles */
.adp_myauction_card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}

.adp_myauction_card-header {
  padding: 0.75rem;
  font-weight: 500;
  text-align: center;
  color: white;
}

.adp_myauction_auction-header {
  background-color: #2563eb;
}

.adp_myauction_mylist-header {
  background-color: #f58d0b;
}

/* Search section */
.adp_myauction_search-section {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: rgba(243, 244, 246, 0.2);
}

.adp_myauction_search-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .adp_myauction_search-container {
    flex-direction: row;
  }
}

.adp_myauction_search-group {
  flex: 1;
  display: flex;
  gap: 0.5rem;
}

.adp_myauction_select-container {
  position: relative;
  flex: 1;
}

select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  appearance: none;
  padding-right: 2rem;
  height: 38px;
}

.adp_myauction_select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.75rem;
}

.adp_myauction_input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  height: 38px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.adp_myauction_btn-secondary {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #4b5563;
  padding: 0.5rem 0.75rem;
  height: 38px;
  width: 100px;
}

.adp_myauction_btn-secondary:hover {
  background-color: #e5e7eb;
}

.adp_myauction_btn-outline {
  background-color: white;
  border: 1px solid #d1d5db;
  color: #4b5563;
  padding: 0.25rem 0.5rem;
  height: 2rem;
}

.adp_myauction_btn-outline:hover {
  background-color: #f9fafb;
}

/* Table styles */
.adp_myauction_table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 0.5rem;
  text-align: center;
  background-color: rgba(243, 244, 246, 0.5);
  font-weight: 500;
  font-size: 0.875rem;
}

td {
  padding: 0.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

tr:hover {
  background-color: rgba(243, 244, 246, 0.2);
}

.adp_myauction_text-center {
  text-align: center;
}

.adp_myauction_text-right {
  text-align: right;
  width: 100px;
}

.adp_myauction_thumbnail {
  display: flex;
  justify-content: center;
  width: 60px;
}

.adp_myauction_thumbnail img {
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  object-fit: cover;
}

.adp_myauction_item-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.adp_myauction_category-badge {
  display: inline-block;
  padding: 0.125rem 0px;
  border-radius: 9999px;
  font-size: 0.75rem;
  width: fit-content;
}

.adp_myauction_whitespace-nowrap {
  white-space: nowrap;
}

/* Modal styles */
.adp_myauction_modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.adp_myauction_modal-backdrop.adp_myauction_show {
  opacity: 1;
  visibility: visible;
}

.adp_myauction_modal {
  background-color: white;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 28rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  position: relative;
}

.adp_myauction_modal-header {
  margin-bottom: 1rem;
}

.adp_myauction_modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}

.adp_myauction_modal-content {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}

.adp_myauction_modal-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.adp_myauction_success-message {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.adp_myauction_error-message {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.adp_myauction_item-name {
  font-size: 1.125rem;
  font-weight: 500;
}

.adp_myauction_info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
}

.adp_myauction_info-row {
  display: flex;
  justify-content: space-between;
}

.adp_myauction_info-row:first-child {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.adp_myauction_info-label {
  font-weight: 500;
}

.adp_myauction_category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adp_myauction_search-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 768px) {
  .adp_myauction_category-container {
    flex-direction: column;
  }
}

/* 페이지네이션 스타일 */
.adp_myauction_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 5px;
}

.adp_myauction_pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.adp_myauction_pagination-button:hover {
  background-color: #f5f5f5;
}

.adp_myauction_pagination-button.active {
  background-color: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

.adp_myauction_pagination-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 로딩 인디케이터 스타일 */
.adp_myauction_loading {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  justify-content: center;
  align-items: center;
}

.adp_myauction_spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #4a6cf7;
  animation: adp_myauction_spin 1s ease-in-out infinite;
}

@keyframes adp_myauction_spin {
  to {
    transform: rotate(360deg);
  }
}

/* 마우스 오버 시 버튼 표시 스타일 */
.adp_myauction_item-row {
  position: relative;
  transition: backgroun;
}

/* 마우스 오버 시 버튼 표시 스타일 */
.adp_myauction_item-row {
  position: relative;
  transition: background-color 0.2s;
}

.adp_myauction_item-row:hover {
  background-color: #f9f9f9;
}

.adp_myauction_hover-buttons {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.adp_myauction_item-row:hover .adp_myauction_hover-buttons {
  display: flex;
  gap: 5px;
}

.adp_myauction_view-btn,
.adp_myauction_add-btn,
.adp_myauction_delete-btn {
  padding: 5px 10px;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.adp_myauction_view-btn:hover {
  background-color: #e9ecef;
}

.adp_myauction_add-btn:hover {
  background-color: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

.adp_myauction_delete-btn:hover {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

/* 카테고리 배지 스타일 수정 */
.adp_myauction_category-badge {
  display: inline-block;
  margin-right: 5px;
  color: #495057;
  font-size: 12px;
  border-radius: 3px;
}

.adp_myauction_category-badge span {
  border: 1px solid #ddd;
  margin-right: 3px;
  padding: 2px 10px;
  border-radius: 100px;
}

/* 에러 메시지 스타일 */
.adp_myauction_error-message {
  color: #e74c3c;
  font-weight: bold;
}

/* 제목 열에 최대 너비 설정 */
.adp_myauction_table-container td:nth-child(2) {
  max-width: 0; /* 이 설정이 중요합니다 - 텍스트 오버플로우가 작동하게 함 */
  width: 100%; /* 가용 공간 차지 */
}

/* 제목 컨테이너 스타일 */
.adp_myauction_item-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0; /* 이것도 중요합니다 - 자식 요소의 텍스트 오버플로우가 작동하게 함 */
}

/* 제목 링크에 말줄임표 적용 */
.adp_myauction_name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

/* 모달 푸터 스타일 */
.adp_myauction_modal-footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.adp_myauction_modal-footer button {
  min-width: 100px;
  height: 38px;
}

@media all and (max-width: 767px) {
  .adp_myauction_search-group {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .adp_myauction_input {
    flex: auto;
    width: 100%;
  }
  .adp_myauction_btn1,
  .adp_myauction_btn2 {
    width: calc(50% - 5px);
  }
}

/* 스타일 파일에 다음 스타일 추가 */
.adp_myauction_ended-badge {
  background-color: #f87171;
  color: white;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 3px;
}

/* 체크박스 스타일 */
input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* 체크박스 라벨 스타일 */
label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
