/* =================================================================
   Volunteer Search Page CSS - 봉사신청내역 조회 페이지 전용 스타일
   ================================================================= */

/* =================================================================
   NOTE: 공통 컴포넌트는 components.css에서 로드됩니다
   - form-table, form-input, btn-search 등
   ================================================================= */

/* 페이지 컨테이너 */
.search-container {
  max-width: var(--size-content-max);
  margin: 0 auto;
  padding: var(--space-12) 0;
}

/* 버튼 그룹 */
.button-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.btn-action {
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: background var(--transition-fast);
  height: var(--size-icon-4xl);
  width: 6.25rem;
}

.confirm-btn {
  background: var(--color-primary);
}

.confirm-btn:hover {
  background: var(--color-primary-hover);
}

.cancel-btn {
  background: var(--color-neutral-350);
}

.cancel-btn:hover {
  background: var(--color-neutral-400);
}

/* =================================================================
   조회 결과 테이블 (components.css의 data-table 사용)
   ================================================================= */


.result-table {
  /* components.css의 data-table 기본 스타일 사용 */
  font-size: var(--text-base);
}

.result-table tr {
  border-bottom: 0.0625rem solid var(--color-border-form);
  height: var(--height-form-table-th);
}

.result-table th {
  /* components.css의 data-table th 기본 스타일 사용 */
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}

.result-table td {
  /* components.css의 data-table td 기본 스타일 사용 */
  text-align: center;
  border-right: none;
}

/* 개별 열 너비 설정 - 봉사신청 조회 */
.result-table th:nth-child(1), .result-table td:nth-child(1) { width: 5%; }    /* 번호 */
.result-table th:nth-child(2), .result-table td:nth-child(2) { width: 27%; }   /* 봉사활동명 */
.result-table th:nth-child(3), .result-table td:nth-child(3) { width: 8%; }    /* 신청자명 */
.result-table th:nth-child(4), .result-table td:nth-child(4) { width: 8%; }    /* 신청구분 */
.result-table th:nth-child(5), .result-table td:nth-child(5) { width: 6%; }    /* 인원수 */
.result-table th:nth-child(6), .result-table td:nth-child(6) { width: 14%; }   /* 소속 */
.result-table th:nth-child(7), .result-table td:nth-child(7) { width: 10%; }   /* 봉사신청일 */
.result-table th:nth-child(8), .result-table td:nth-child(8) { width: 6%; }    /* 상태 */
.result-table th:nth-child(9), .result-table td:nth-child(9) { width: 6%; }    /* 취소 */

/* 봉사활동명은 긴 텍스트 처리 */
.result-table td:nth-child(2) {
  text-align: left;
  padding-left: var(--space-3);
  white-space: normal;
}

/* 상태 배지는 components.css 사용 */

/* =================================================================
   프로그램 검색 결과 테이블 (피그마 디자인 기준)
   ================================================================= */

/* 프로그램 검색 결과 테이블 컬럼 너비 설정 */
.program-result-table th:nth-child(1), .program-result-table td:nth-child(1) { width: 6%; }    /* 번호 */
.program-result-table th:nth-child(2), .program-result-table td:nth-child(2) { width: 28%; }   /* 프로그램명 */
.program-result-table th:nth-child(3), .program-result-table td:nth-child(3) { width: 18%; }   /* 프로그램기간 */
.program-result-table th:nth-child(4), .program-result-table td:nth-child(4) { width: 10%; }   /* 신청자명 */
.program-result-table th:nth-child(5), .program-result-table td:nth-child(5) { width: 20%; }   /* 장소 */
.program-result-table th:nth-child(6), .program-result-table td:nth-child(6) { width: 10%; }   /* 접수일 */
.program-result-table th:nth-child(7), .program-result-table td:nth-child(7) { width: 8%; }    /* 상태 */

/* 프로그램명은 긴 텍스트 처리 */
.program-result-table td:nth-child(2) {
  text-align: left;
  padding-left: var(--space-3);
  white-space: normal;
}

/* 장소도 긴 텍스트 처리 */
.program-result-table td:nth-child(5) {
  text-align: left;
  padding-left: var(--space-3);
  white-space: normal;
}

/* 취소 버튼 - 현대적 디자인 */
.cancel-application-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: var(--color-white);
  border: 0.0625rem solid #dc3545;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 3rem;
  box-shadow: 0 0.125rem 0.25rem rgba(220, 53, 69, 0.2);
}

.cancel-application-btn:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.25rem 0.5rem rgba(220, 53, 69, 0.3);
}

/* =================================================================
   조회 결과 없음
   ================================================================= */

.no-results {
  text-align: center;
  padding: var(--space-20) var(--space-5);
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: var(--space-5);
  opacity: 0.5;
}

.no-results p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.no-results-sub {
  font-size: var(--text-base);
  color: var(--color-neutral-400);
}

/* =================================================================
   모달 스타일
   ================================================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-scrim);
}

.modal-close {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  cursor: pointer;
  z-index: 5000;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  border: none;
}

.modal-content {
  background: var(--color-white);
  margin: 10% auto;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 32rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
  animation: modalSlideIn var(--transition-normal);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin: 0;
}

.modal-body {
  padding: var(--space-6);
}

.cancel-target {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: 0 var(--space-6) var(--space-6);
}

.cancel-modal-btn {
  background: var(--color-neutral-350);
}

.cancel-modal-btn:hover {
  background: var(--color-neutral-400);
}

.confirm-modal-btn {
  background: var(--color-primary);
}

.confirm-modal-btn:hover {
  background: var(--color-primary-hover);
}

/* =================================================================
   반응형 디자인
   ================================================================= */

@media (max-width: 1024px) {
  /* components.css의 data-table 반응형 스타일 사용 */
}

@media (max-width: 768px) {
  .search-container {
    padding: var(--space-4) 0;
  }

  .button-group {
    flex-direction: column;
    gap: var(--space-2);
  }

  .button-group .btn-action {
    width: 100%;
  }

  /* components.css의 data-table 반응형 스타일 사용 */

  .pagination {
    gap: var(--space-0);
  }

  .page-link {
    min-width: 2rem;
    height: 2rem;
    font-size: var(--text-sm);
  }

  .modal-content {
    width: 95%;
    margin: 20% auto;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: var(--space-4);
  }

  .modal-footer .btn-action {
    flex: 1;
  }
}

@media (max-width: 480px) {
  /* 개별 열 설정 - 봉사신청 조회 */
  .result-table th:nth-child(4), .result-table td:nth-child(4) { display: none; }    /* 신청구분 */
  .result-table th:nth-child(5), .result-table td:nth-child(5) { display: none; }    /* 인원수 */
  .result-table th:nth-child(6), .result-table td:nth-child(6) { display: none; }   /* 소속 */
  .result-table th:nth-child(7), .result-table td:nth-child(7) { display: none; }   /* 봉사신청일 */

  /* 프로그램 검색 결과 테이블 컬럼 너비 설정 */
  .program-result-table th:nth-child(4), .program-result-table td:nth-child(4) { display: table-cell; }   /* 신청자명 */
  .program-result-table th:nth-child(5), .program-result-table td:nth-child(5) { display: none; }   /* 장소 */
  .program-result-table th:nth-child(6), .program-result-table td:nth-child(6) { display: none; }   /* 접수일 */
  .program-result-table th:nth-child(7), .program-result-table td:nth-child(7) { display: table-cell; }   /* 상태 */


  .result-table-container {
    overflow-x: auto;
  }

  .no-results {
    padding: var(--space-10) var(--space-2);
  }

  .no-results-icon {
    font-size: 3rem;
  }
}

/* =================================================================
   NOTE: 페이지네이션 스타일은 components.css에서 로드됩니다
   ================================================================= */ 