/* Global Styles */
@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: 'GmarketSansMedium', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2{
  text-align: center;
  
}
p {
  color:#666;
  font-size:small;
}

/* Dashboard Layout */
.dashboard-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.dashboard-header h1 {
  color: #2d3748;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.dashboard-header .subtitle {
  color: #718096;
  font-size: 1.125rem;
}

.dashboard-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.section-description {
  color: #718096;
  font-size: 0.875rem;
}

/* Form Styles */
.event-form-container,
.report-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.5rem;
}
.application-form {
      margin-top: 2rem;
      padding: 2rem;
      background: #f8fafc;
      border-radius: 0.5rem;
      border: 1px solid #e2e8f0;
    }

    .question-section {
      margin: 1.5rem 0;
      padding: 1rem;
      background: white;
      border-radius: 0.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .question-text {
      font-weight: bold;
      color: #2d3748;
      margin-bottom: 0.5rem;
    }

    .answer-textarea {
      width: 100%;
      min-height: 100px;
      padding: 0.75rem;
      border: 1px solid #e2e8f0;
      border-radius: 0.375rem;
      margin-top: 0.5rem;
    }

    .file-upload {
      margin-top: 1rem;
    }

    .file-label {
      display: inline-block;
      padding: 0.5rem 1rem;
      background: #edf2f7;
      border-radius: 0.375rem;
      cursor: pointer;
    }

    .file-name {
      margin-left: 0.5rem;
      color: #4a5568;
    }

    .edit-field {
      margin-bottom: 1rem;
    }

    .edit-field input, 
    .edit-field textarea {
      width: 100%;
      padding: 0.5rem;
      border: 1px solid #e2e8f0;
      border-radius: 0.375rem;
    }

    .selective-badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      background: #edf2f7;
      color: #2d3748;
      border-radius: 9999px;
      font-size: 0.875rem;
      margin-bottom: 1rem;
    }


    /* 신청서 폼 스타일 */
    .application-form {
      margin-top: 2rem;
      padding: 2rem;
      background: #f8fafc;
      border-radius: 0.5rem;
      border: 1px solid #e2e8f0;
    }

    .question-section {
      margin: 1.5rem 0;
      padding: 1rem;
      background: white;
      border-radius: 0.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .question-text {
      font-weight: bold;
      color: #2d3748;
      margin-bottom: 0.5rem;
    }

    .answer-textarea {
      width: 100%;
      min-height: 100px;
      padding: 0.75rem;
      border: 1px solid #e2e8f0;
      border-radius: 0.375rem;
      margin-top: 0.5rem;
    }

    .file-upload {
      margin-top: 1rem;
    }

    .file-label {
      display: inline-block;
      padding: 0.5rem 1rem;
      background: #edf2f7;
      border-radius: 0.375rem;
      cursor: pointer;
    }

    .file-name {
      margin-left: 0.5rem;
      color: #4a5568;
    }

    .edit-field {
      margin-bottom: 1rem;
    }

    .edit-field input, 
    .edit-field textarea {
      width: 100%;
      padding: 0.5rem;
      border: 1px solid #e2e8f0;
      border-radius: 0.375rem;
    }

    .selective-badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      background: #edf2f7;
      color: #2d3748;
      border-radius: 9999px;
      font-size: 0.875rem;
      margin-bottom: 1rem;
    }
/* 추가 질문 스타일 */
  .question-container {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
  }

  .question-container.active {
    display: block;
  }

  .question-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    position: relative;
  }

  .delete-question {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
  }

  .delete-question:hover {
    background: #dc2626;
  }

  .add-question {
    margin-top: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
  }

  .add-question:hover {
    background: #2563eb;
  }

  .add-question:disabled {
    background: #9ca3af;
    cursor: not-allowed;
  }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0A84FE;
  box-shadow: 0 0 0 3px rgba(10, 132, 254, 0.1);
  outline: none;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: #718096;
  margin-top: 0.5rem;
}

.input-with-icon {
  position: relative;
}

.input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
}

/* Week Selection Styles */
.week-container {
  margin-bottom: 2rem;
}

.week-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.week-option {
  position: relative;
  cursor: pointer;
}

.week-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.week-label {
  display: block;
  padding: 0.75rem;
  text-align: center;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.week-option input[type="radio"]:checked + .week-label {
  background: #0A84FE;
  color: white;
  border-color: #0A84FE;
}

.week-option:hover .week-label {
  border-color: #0A84FE;
}

/* Participant Selection Styles */
.participant-selection-container {
  margin-bottom: 2rem;
}

.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.participant-item:hover {
  transform: translateX(5px);
  background: #f8fafc;
  border-color: #0A84FE;
}

/* 커스텀 체크박스 스타일 */
.participant-item input[type="checkbox"] {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  cursor: pointer;
  appearance: none;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.participant-item input[type="checkbox"]:checked {
  background-color: #0A84FE;
  border-color: #0A84FE;
}

.participant-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 0.25rem;
  height: 0.5rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  display: block;
}

.participant-item input[type="checkbox"]:hover {
  border-color: #0A84FE;
}

.participant-item label {
  font-size: 0.95rem;
  color: #4a5568;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

/* 선별적 이벤트 체크박스 스타일 */
.checkbox-label {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background: #f0f9ff;
  border-color: #0A84FE;
}

.checkbox-label input[type="checkbox"] {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  margin-left: 1rem;
  appearance: none;
  background: #cbd5e0;
  border-radius: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: #0A84FE;
}

.checkbox-label input[type="checkbox"]:checked::after {
  transform: translateX(1.5rem);
}

/* 참가자 그리드 컨테이너 */
.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-height: 400px;
  overflow-y: auto;
}

/* 스크롤바 스타일 */
.participant-grid::-webkit-scrollbar {
  width: 8px;
}

.participant-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.participant-grid::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}

.participant-grid::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Button Styles */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.selected-participant-cancel{
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.button-primary,
.button-secondary,
.button-outline,.load-participants-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.button-primary,.load-participants-btn {
  background: #0A84FE;
  color: white;
  border: none;
}

.button-primary,.load-participants-btn:hover {
  background: #0875e0;
  transform: translateY(-2px);
}

.button-secondary {
  background: #4a5568;
  color: white;
  border: none;
}

.button-secondary:hover {
  background: #2d3748;
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.button-outline:hover {
  background: #f7fafc;
  transform: translateY(-2px);
}

/* 합격 결과 확인 버튼 스타일 */
.result-check-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 280px;
  padding: 0.8rem 1.5rem;
  margin: 1.5rem auto;
  background: linear-gradient(135deg, #6366f1, #0A84FE);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 132, 254, 0.3);
}

.result-check-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 132, 254, 0.4);
  background: linear-gradient(135deg, #4f46e5, #0875e0);
}

.result-check-button:active {
  transform: translateY(-1px);
}

.result-icon {
  font-size: 1.3rem;
  margin-right: 8px;
}

.result-text {
  flex-grow: 1;
  text-align: center;
}

.result-arrow {
  font-size: 1.2rem;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.result-check-button:hover .result-arrow {
  transform: translateX(5px);
}

/* 기존 버튼들과 새로운 버튼 사이의 구분선 */
.result-check-button {
  position: relative;
  margin-top: 2rem;
}

.result-check-button::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 254, 0.2), transparent);
}


/* Custom Scrollbar */
.participant-grid::-webkit-scrollbar {
  width: 8px;
}

.participant-grid::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 8px;
}

.participant-grid::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 8px;
}

.participant-grid::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
/* %주차 스타일 */
.week-section {
  background-color: #ffffff;
  border: 1px solid #0A84FE;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.week-selection-horizontal {
  display: flex;
  justify-content: space-between; /* 각 주차 간격 */
  gap: 1rem; /* 주차 선택 간격 조정 */
}

.week-selection-horizontal label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  padding: 10px;
  border: 1px solid #0A84FE; /* 주차 구분 경계선 */
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s;
}

.week-selection-horizontal label:hover {
  background-color: #eef6ff; /* 호버 시 색상 변경 */
  
  transform: translateY(-3px); /* 살짝 들어올림 효과 */
}

.week-selection-horizontal input[type="radio"] {
  margin-bottom: 5px;
}

/* 참가자 스타일 */
.participant-section {
  background-color: #ffffff;
  border: 1px solid #0A84FE;
  padding: 1.5rem;
  border-radius: 10px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* 제목 컨테이너 */
.title-container {
  text-align: center;
  
  margin-top: 1rem;
  margin-bottom: 2rem;
}
dot {
  text-emphasis-style : filled;
}
.subtitle {
  font-size: 1.2rem;
  font-family: 'GmarketSansMedium', sans-serif;
  line-height: 1.2;
  color: #0A84FE;
  letter-spacing: -0.5px;
  margin: 0;
  
}

.main-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #73b5f8,#0A84FE);
  -webkit-background-clip: text;
  color: transparent;
  margin: 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
#announcement-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 5px;
}

#modal-title {
  margin-top: 0;
  color: #333;
}

#modal-content {
  margin: 15px 0;
  line-height: 1.6;
}

.close-button {
  float: right;
  cursor: pointer;
  font-size: 28px;
}

.home-announcement {
  text-align: center;
  font-size:large;
  font-family: 'GmarketSansMedium', sans-serif;
  cursor: pointer;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.home-announcement:hover {
  background-color: #f5f5f5;
}


/* 팝업 스타일 */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

#popup1 .popup-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: popupOpen 0.3s ease-out;
  top: 50%;
  left: -10%;
  transform: translate(-50%, -50%);
}

#popup2 .popup-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: popupOpen 0.3s ease-out;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
}

.close-button {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

.popup-body {
  margin: 20px 0;
  text-align: center;
}

.popup-images img {
  display: none;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

.popup-images img:first-child {
  display: block;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.popup-footer button {
  padding: 8px 20px;
  background-color: #0A84FE;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-footer button:hover {
  background-color: #0875e0;
}

.popup-footer label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  cursor: pointer;
}

.dont-show-today {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  cursor: pointer;
}

/* 모바일 환경에서의 팝업 스타일 수정 */


/* 지원서 스타일 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  margin: 10% auto;
  padding: 2rem;
  width: 80%;
  max-width: 600px;
  border-radius: 0.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.answer-section {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.question-text {
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.answer-text {
  white-space: pre-wrap;
  padding: 1rem;
  background: white;
  border-radius: 0.25rem;
}

.file-attachment {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #edf2f7;
  border-radius: 0.25rem;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.participant-row {
  transition: background-color 0.3s ease;
}

.participant-row:hover {
  background-color: #f8fafc;
}

.status-approved {
  background-color: #dcfce7 !important;
}

.view-application-btn {
  padding: 0.25rem 0.75rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.view-application-btn:hover {
  background-color: #2563eb;
}

.application-item {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.application-actions {
  display: flex;
  gap: 0.5rem;
}

.approve-btn, .reject-btn {
  padding: 0.25rem 0.75rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

.approve-btn {
  background-color: #10b981;
  color: white;
}

.reject-btn {
  background-color: #ef4444;
  color: white;
}

/* 버튼 스타일 */
button, .submit-button {
  display: flex; /* Flexbox 활성화 */
  justify-content: center; /* 가로 방향 중앙 정렬 */
  align-items: center; /* 세로 방향 중앙 정렬 */
  font-family: 'GmarketSansMedium', sans-serif;
  width: 90%;
  max-width: 240px; /* 버튼 최대 크기를 조금 더 줄임 */
  padding: 0.8rem;
  font-size: 1rem;
  margin: 1rem auto;
  background-color: #ffffff;
  color: #0A84FE;
  border-color: #0A84FE;
  border-radius: 50px; 
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}


button:hover, .submit-button:hover {
  background-color: #0C84FE;
  color:#ffffff;
  transform: translateY(-3px);
}

#kakao-login-button {
  width: 70%;
  font-family: 'GmarketSansMedium', sans-serif;
  max-width: 200px;
  font-size: 0.9rem;
  padding: 0.8rem;
  background-color: none;
  color: #666;
  border: none;
  border-radius: none;
  cursor: pointer;
  text-align: center;
  display: none;
  transition: background-color 0.3s, transform 0.2s;
}
#kakao-login-button:hover {
  background-color: #999;
  color: #ffffff;
  transform: translateY(-3px); /* Hover effect */
}
/* 로그아웃 버튼 스타일 */
#logout-button {
  width: 70%;
  font-family: 'GmarketSansMedium', sans-serif;
  max-width: 200px;
  font-size: 0.9rem;
  padding: 0.8rem;
  background-color: none;
  color: #666;
  border: none;
  border-radius: none;
  cursor: pointer;
  text-align: center;
  display: none;
  transition: background-color 0.3s, transform 0.2s;
}
#logout-button:hover {
  background-color: #999;
  color: #ffffff;
  transform: translateY(-3px); /* Hover effect */
}

/* 메인 컨테이너 */
.container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;  /* margin-top 제거 */
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  box-sizing: border-box;
  min-height: calc(100vh - 70px - 65px); /* 상단 네비게이션과 하단 네비게이션 높이를 제외한 최소 높이 */
}
.container .nav-container {
  /* container 내부의 nav에 대한 스타일 */
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.container .sticky-top {
    position: sticky; /* fixed 대신 sticky 사용 가능 */
    top: 0;
}

.container .sticky-bottom {
    position: sticky;
    bottom: 0;
}
/*footer 부분*/
footer {
  background-color: #fff;
  color: #333;
  padding: 20px 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-section {
  margin-bottom: 20px;
  flex: 1 1 200px;
  margin-right: 10px;
}
.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}
.footer-section ul li a:hover {
  color: #3498db;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

/* 폼 */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #555;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #0A84FE;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #70abe6;
  outline: none;
  box-shadow: 0 0 5px #0C84FE(255, 235, 0, 0.5);
}
/* 성별 관련 스타일 */
.gender-male {
  color: #0A84FE;
  font-weight: 500;
}

.gender-female {
  color: #FF69B4;
  font-weight: 500;
}

.gender-other {
  color: #6B7280;
  font-weight: 500;
}

/* 역할 관련 스타일 */
.role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  min-width: 60px;
}

.role-starter {
  background-color: #FDE68A;
  color: #92400E;
}

.role-officer {
  background-color: #A5F3FC;
  color: #0E7490;
}

.role-participant {
  background-color: #BBF7D0;
  color: #166534;
}

.role-admin {
  background-color: #DDD6FE;
  color: #5B21B6;
}

/* 신청자 목록 스타일 개선 */
.application-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.application-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.birth-year {
  color: #6B7280;
  font-size: 0.85rem;
  margin-left: 5px;
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.participant-name {
  font-weight: bold;
  margin-right: 5px;
}
/* User Information Display */
.user-info {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 0.8rem;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  text-align: right;
  width: 220px;
  font-size: 0.85rem;
}

.user-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #ddd;
}

.user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  border: 2px solid #fff;
}
/* Styling for the current date */
#current-date {
  
  
  text-align: left;
  margin-top: 10px; 
  font-size: 2rem; 
  color: #272626;
  
  
}




  /* 표 스타일 */
  table {
    width: 100%;
    table-layout: fixed; /* 열 너비를 고정 */
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-radius: 8px; /* Rounded corners for the table */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  th, td {
    padding: 0.8rem;
    border: 1px solid #ffffff;
    text-align: center;
    word-wrap: break-word; /* 텍스트 줄바꿈 */
    border-color:#ddd;
  }

  th {
    background: #ffffff;
    color: #333;
    
    font-weight: bold;
    text-transform: uppercase; /* Uppercase for column titles */
    
  }


  td {
    background: #ffffff;
    transition: background 0.3s ease;
    vertical-align: middle; /* 셀 내용 가운데 정렬 */
    text-align: center; /* 셀 내용 가운데 정렬 */
  }

  
.applied-download-btn {
  background-color: #28a745;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.applied-download-btn:hover {
  background-color: #218838;
}

.icon {
  font-size: 18px;
}
  /* 취소 버튼 스타일 */
  td img {
    cursor: pointer;
    width: 20px; /* Slightly bigger for better visibility */
    transition: transform 0.2s ease;
  }

  td img:hover {
    transform: scale(1.2); /* Enlarge on hover */
  }

  .status-pending {
    color: #f39c12;
    font-size: 13px;
    font-style: italic;
  }
  .status-approved {
    color: #2ecc71;
    font-size: 13px;
  }
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
/* public/css/styles.css에 추가 */
.approve-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
}
.approve-btn :hover{
  transform: translateY(-3px);
}



.reject-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.status-confirmed {
  color: #4CAF50;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: #e8f5e8;
  border-radius: 4px;
}
.status-rejected {
  color: #f44336;
  font-weight: bold;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background-color: #ffeaea;
  border-radius: 4px;
}
td.action-buttons {
  min-width: 200px;
  white-space: nowrap;
}



#event-details {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

tr:hover {
  background-color: #f5f5f5;
}

  /* 이미지 업로드 스타일 수정 */
.image-section {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.image-upload-button {
  width: 200px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #f9fafb;
}

.image-upload-button:hover {
  border-color: #0A84FE;
  background-color: #f0f9ff;
}

.plus-icon {
  font-size: 32px;
  color: #0A84FE;
  margin-bottom: 5px;
}

.upload-text {
  font-size: 14px;
  color: #6b7280;
}

.image-upload-input {
  display: none;
}

/* 이미지 업로드 버튼 비활성화 상태 */
.image-upload-button.disabled {
  border-color: #e5e7eb;
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.image-upload-button.disabled .plus-icon {
  color: #9ca3af;
}

.image-upload-button.disabled:hover {
  border-color: #e5e7eb;
  background-color: #f3f4f6;
}

/* 이벤트 리스트 스타일  */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.event-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1;
}

.status-badge.full {
  background-color: #dc3545;
  color: white;
}

.status-badge.approved {
  background-color: #28a745;
  color: white;
}

.status-badge.pending {
  background-color: #ffc107;
  color: #212529;
}

.event-content {
  padding: 1.5rem;
}

.event-header {
  margin-bottom: 1rem;
}
.refund-policy-container {
  margin-top: 10px;
}
.refund-policy-section {
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.refund-policy-content {
  flex: 1;
  line-height: 1.5;
}

.refund-standard {
  color: #28a745;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.refund-custom {
  color: #fd7e14;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.refund-none {
  color: #6c757d;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 수정 모드에서의 환불 정책 스타일 */
.refund-policy-edit-section {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.refund-policy-edit-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.1em;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-label:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.radio-label input[type="radio"] {
  margin-top: 2px;
}

.radio-label input[type="radio"]:checked + span {
  font-weight: 600;
  color: #007bff;
}

.radio-label input[type="radio"]:checked {
  accent-color: #007bff;
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.radio-hint {
  display: block;
  color: #666;
  font-size: 0.9em;
  margin-top: 5px;
  line-height: 1.4;
}

.custom-refund-section {
  margin-top: 15px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.custom-refund-section textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

.event-team {
  font-size: 0.9rem;
  color: #0A84FE;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.info-icon {
  color: #0A84FE;
  font-size: 1.1rem;
}

.info-icon img {
  width: 20px; /* 이미지 너비 조정 */
  height: 20px; /* 이미지 높이 조정 */
  object-fit: cover; /* 이미지 비율 유지 */
  transform: translateY(2px);
}

.selective-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #666;
}

.event-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.action-button {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}


.view-details {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.view-details:hover {
  background-color: #e9ecef;
}

.apply-button {
  background-color: #0A84FE;
  color: white;
  border: none;
}

.apply-button:hover {
  background-color: #0875e0;
}

.apply-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.cancel-button {
  background-color: #dc3545;
  color: white;
  border: none;
}

.cancel-button:hover {
  background-color: #c82333;
}

.delete-button {
  background-color: #6c757d;
  color: white;
  border: none;
}

.delete-button:hover {
  background-color: #5a6268;
}


/* Status Badge Styles */
.status-badge {
  position: absolute;
  top: 1rem;
  right: 1.45rem;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.full {
  background-color: #fc8181;
  color: white;
}

.status-badge.approved {
  background-color: #68d391;
  color: white;
}

.status-badge.pending {
  background-color: #f6e05e;
  color: #744210;
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 2rem;
}

.empty-state-image {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  color: #718096;
  font-size: 1.125rem;
}

  /* 이벤트와 상태 스타일 */
  .event, .status {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0;
  }

  .event h3, .status h3 {
    margin: 0;
  }
  /* Flexbox layout for aligning week and participant selection */
  .form-row {
    display: flex;
    justify-content: space-between; /* Space between week and participant sections */
    gap: 2rem; 
  }

  .form-item {
    flex: 1; 
  }

  fieldset {
    border: none; /* Remove default fieldset border */
    padding: 0;
    margin: 0;
  }

  legend {
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  

  /* 후기 */

  h2 {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 1rem;
    border-top: 2px solid #ddd;
    padding-bottom: 0.3rem;
  }

  /* 후기 리스트 스타일 */
  .review-section {
    margin-top: 2rem;
  }
  
  /* 별점 컨테이너 */
  .rating-container {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .rating-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
  }
  
  .star-rating {
    display: inline-block;
  }
  
  .stars {
    display: flex;
    flex-direction: row;  /* flex-direction을 row로 설정 */
    justify-content: center;
    gap: 0.5rem;
  }
  
  .star {
    font-size: 2.5rem;
    cursor: pointer;
    color: #ddd;
    transition: all 0.3s ease;
    user-select: none;
  }
  
  /* hover 효과 방향 변경 */
  .star:hover ~ .star {
    color: #ddd;  /* 호버한 별 이후의 별들은 회색으로 */
  }
  
  .stars:hover .star {
    color: #ffd700;  /* 호버 시 모든 별을 먼저 노란색으로 */
  }
  
  .star:hover ~ .star {
    color: #ddd;  /* 호버한 별 이후의 별들만 회색으로 변경 */
  }
  
  .star.active {
    color: #ffd700;
    animation: star-pop 0.3s ease;
  }
  

  @keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 이미지에 애니메이션 적용 */
.floating-image {
  animation: float 3s ease-in-out infinite;
}
  
  /* 댓글 컨테이너 */
  .comment-container {
    margin-bottom: 1.5rem;
  }
  
  .comment-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
  }
  
  .comment-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
  }
  
  .comment-container textarea:focus {
    border-color: #0A84FE;
    outline: none;
  }
  
  /* 폼 푸터 */
  .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
  }
  
  .anonymous-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .anonymous-checkbox input {
    margin-right: 0.5rem;
  }
  
  .checkbox-text {
    color: #666;
    font-size: 0.9rem;
  }
  
  /* 리뷰 리스트 */
  .reviews-container {
    margin-top: 3rem;
  }
  
  .reviews-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
  }
  
  .review {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .review:hover {
    transform: translateY(-2px);
  }
  
  .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .review-author {
    font-weight: 600;
    color: #333;
  }
  
  .review-stars {
    margin-left: 1rem;
    color: #ffd700;
    letter-spacing: 2px;
  }
  
  .review-actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
  }
  
  .review-action-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #666;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .review-action-btn:hover {
    color:#ffffff;
    background-color: #0A84FE;
    transform: translateY(-1px);
  }
  
  .review-action-btn.delete:hover {
    color:#ffffff;
    background-color: #0A84FE;
  }
  
  .review-content {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .review-date {
    font-size: 0.8rem;
    color: #888;
  }
  
  /* 네비게이션 */
  .navigation {
    margin-top: 3rem;
    text-align: center;
  }
  

  /* 스크롤바 전체 */
::-webkit-scrollbar {
  width: 12px; /* 스크롤바의 너비 */
  height: 12px; /* 가로 스크롤바의 높이 */
}

/* 스크롤바 배경 */
::-webkit-scrollbar-track {
  background: #f1f1f1; /* 스크롤바 배경 색 */
  border-radius: 10px; /* 모서리 둥글게 */
}

/* 스크롤바 핸들(움직이는 부분) */
::-webkit-scrollbar-thumb {
  background: #888; /* 핸들 색 */
  border-radius: 10px; /* 핸들의 모서리 둥글게 */
  border: 3px solid #f1f1f1; /* 핸들 주변에 여백을 만들기 위한 경계 */
}

/* 스크롤바 핸들이 마우스와 상호작용할 때 */
::-webkit-scrollbar-thumb:hover {
  background: #555; /* 마우스를 올렸을 때 색 */
}


.application-form {
  margin-top: 2rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.question-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question-text {
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.answer-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

.file-upload {
  margin-top: 1rem;
}

.file-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #edf2f7;
  border-radius: 0.375rem;
  cursor: pointer;
}

.file-name {
  margin-left: 0.5rem;
  color: #4a5568;
}

.edit-field {
  margin-bottom: 1rem;
}

.edit-field input, 
.edit-field textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

.button-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.status-history-indicator {
  font-size: 11px;
  color: #6c757d;
  font-style: italic;
  margin-top: 5px;
  padding: 2px 6px;
  background-color: #f8f9fa;
  border-radius: 3px;
  display: inline-block;
}

/* 되돌리기 확인 메시지 스타일 개선을 위한 클래스 */
.reset-warning {
  color: #e67e22;
  font-weight: 500;
}
.reset-btn {
  background-color: #f39c12;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
}

.history-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.history-btn:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

/* 버튼 호버 효과 개선 */
.approve-btn:hover,
.reject-btn:hover,
.reset-btn:hover,
.history-btn:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 비활성화된 버튼 스타일 */
.approve-btn:disabled,
.reject-btn:disabled,
.reset-btn:disabled,
.history-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.selective-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #edf2f7;
  color: #2d3748;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
#kakao-share-button img {
  width: 60px; /* 원하는 크기로 조정 */
  height: auto; /* 비율 유지 */
}

/* 종료된 이벤트 페이지 스타일 */
.title-section {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.title-section h1 {
  color: #333;
  margin-bottom: 0.5rem;
}

.title-section .subtitle {
  color: #666;
  font-size: 1rem;
}

.ended-events-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.ended-event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ended-event-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-info h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.event-details {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.review-action {
  flex-shrink: 0;
  margin-left: 1rem;
}

.review-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: #0A84FE;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-button:hover {
  background: #0875e0;
  transform: translateY(-2px);
}

.review-icon {
  font-size: 1.2rem;
}

.reviewed-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 8px;
  font-size: 0.9rem;
}

.empty-state, .error-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.navigation-buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* 페이지네이션 스타일 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination-button {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.pagination-button:hover:not(:disabled) {
  background: #e9ecef;
  transform: translateY(-1px);
}

.pagination-button:disabled {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  border-color: #dee2e6;
}

#page-info {
  color: #666;
  font-size: 0.9rem;
}



/* iOS 안전 영역 대응 */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}
 /* 모바일 환경*/
@media (max-width: 768px) {
  footer {
      display: none;
  }
  .dashboard-section {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary,
  .button-outline {
    width: 100%;
  }
  .events-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    padding: 1rem 0.5rem;
  }

  .event-card {
    margin-bottom: 1rem;
  }

  .event-card-footer {
    flex-wrap: wrap;
  }

  .event-card-footer button {
    flex: 1;
    min-width: 120px;
  }
  .toggle-btn {
    font-size: 1.2rem; /* 모바일 화면에서는 글씨 크기 조정 */
    top: 0.5rem;
    left: 0.5rem;
  }
  .event-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ended-event-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .review-action {
    margin-left: 0;
  }

  
  .popup-footer {
    flex-direction: column; /* 세로 정렬 */
    align-items: flex-start; /* 왼쪽 정렬 */
  }

  .dont-show-today {
    display: flex;
    flex-direction: column; /* 체크박스 위, 텍스트 아래 */
    align-items: flex-start;
  }

  .popup-footer button {
    align-self: flex-end; /* 버튼은 오른쪽에 */
  }

  /* 이벤트 상세 페이지 스타일 */
  .event-info {
    padding: 0.5rem;
  }

  #event-details p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }

  .event-image-container img {
    width: 100%;
    height: auto;
  }

  /* 이벤트 리스트 스타일 */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .event-card {
    margin-bottom: 1rem;
  }

  /* 버튼 스타일 조정 */
  button, .submit-button {
    width: 70%;
    text-align: center;
    max-width: none;
    padding: 0.7rem;
    margin: 0.5rem auto; /* Changed: 좌우 margin을 auto로 설정 */
    display: block; /* Added: block으로 설정하여 중앙 정렬이 가능하게 함 */
  }

  /* 홈페이지 스타일 */
  .title-container {
    padding: 1rem 0;
  }

  .title-container img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .home-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* 팝업 스타일 조정 */
  .popup-content {
    width: 95%;
    margin: 10% auto;
    left: 0 !important;
    transform: translateY(-50%) !important;
  }

  /* 네비게이션 버튼 조정 */
  .navigation-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .calendar-button,
  .ended-events-button {
    width: 100%;
  }

  /* 폼 요소 조정 */
  input, select, textarea {
    font-size: 16px; /* 모바일에서 자동 확대 방지 */
  }

  /* 테이블 반응형 처리 */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    padding: 0.5rem;
  }

  /* 모달 조정 */
  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 1rem;
  }
}

/* 공지사항 스타일 */
.announcement-item {
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
}

.announcement-item h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.announcement-date {
  color: #666;
  font-size: 0.9em;
  margin: 5px 0;
}

.announcement-item button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
}

.announcement-item button:hover {
  background-color: #0056b3;
}

/* 검색 컨테이너 스타일 */
.search-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center; /* 중앙 정렬로 변경 */
}

.search-container input {
  flex: 3; /* flex 값을 증가시켜 더 많은 공간 차지 */
  min-width: 0;
  height: 40px;
  border-radius: 8px;
  padding: 0.75rem;
  line-height: 40px;
}

.search-button {
  flex: 0.5; /* flex 값을 감소시켜 더 작은 공간 차지 */
  height: 40px;
  padding: 0 1rem; /* 좌우 패딩 감소 */
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  background: #0A84FE;
  color: white;
  align-items: center;
  justify-content: center;
  min-width: 60px; /* 최소 너비 설정 */
}

.search-button:hover {
  background: #0875e0;
  transform: translateY(-2px);
}

/* 참가자 카드 스타일 개선 */
.participant-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.participant-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.participant-info h3 {
  margin: 0;
  color: #2d3748;
  font-size: 18px;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #0A84FE;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  background-color: #0A84FE;
  border-color: #0A84FE;
}

.participant-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.participant-name {
  font-weight: 500;
  color: #333;
}

.participant-phone {
  font-size: 0.9rem;
  color: #666;
}

/* 선택된 참가자 미리보기 스타일 */
#selected-participants-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
  min-height: 100px;
}

.selected-participant {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.selected-participant:hover {
  background-color: #e2e8f0;
}

/* 참가자 목록 검색 컨테이너 */
.search-container {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.search-container input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-container input:focus {
  border-color: #0A84FE;
  box-shadow: 0 0 0 3px rgba(10, 132, 254, 0.1);
}

/* 참가자 카드 개선 */
.participants-list {
  display: grid;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.participant-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.participant-card:hover {
  border-color: #0A84FE;
  transform: translateX(5px);
}

.participant-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.participant-name {
  font-weight: 500;
  color: #2d3748;
}

.participant-phone {
  color: #718096;
  font-size: 0.9rem;
}

/* 체크박스 커스텀 스타일 */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #0A84FE;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-checkbox:checked {
  background-color: #0A84FE;
  border-color: #0A84FE;
}

.rules-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  background-color: #fff3cd;
  color: #856404;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.rules-status {
  margin: 1rem 0;
  padding: 0.8rem;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  color: #856404;
  font-size: 0.9rem;
  line-height: 1.4;
}

.rules-status strong {
  color: #533f03;
}

/* 공유 버튼과 모달 스타일 */
.title-share-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
}

.share-button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 5px;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.share-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.share-button:hover {
  transform: scale(1.1);
}

/* 공유 모달 스타일 개선 */
.share-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 280px;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.share-option {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.share-option:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.share-option img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.share-option span {
  color: #333;
  font-size: 0.95rem;
}

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width:   100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.share-modal button {
  width: 100%;
  padding: 8px;
  margin-top: 15px;
  border: none;
  border-radius: 6px;
  background-color: #f1f3f5;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-modal button:hover {
  background-color: #e9ecef;
}

/* 이벤트 상세 페이지 스타일 */
.container {
  background-color: #ffffff;
}

.main-event-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  margin: 0 auto 20px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-event-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-title {
  font-size: 24px;
  color: #333;
  font-family: 'GmarketSansMedium', sans-serif;
  margin-bottom: 20px;
}

.title-share-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
}

.icon-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: black;
  font-size: 16px;
}

.info-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.event-contents-section {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.event-contents-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .main-event-image {
    max-height: none;
    height: auto;
    margin: 10px auto;
  }

  .main-event-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .title-share-container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .event-title {
    font-size: 20px;
    margin-bottom: 10px;
    width: 100%;
  }

  .icon-info {
    gap: 10px;
    margin-bottom: 20px;
  }

  .info-row {
    font-size: 14px;
  }
}