:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --bg-dark: #0a0a0a;
  --bg-light: #1a1a1a;
  --text-white: #ffffff;
  --text-gray: #888888;
  --accent: #666666;
}

@font-face {
  font-family: 'IncheonEducation';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2307-2@1.0/iceJaram-Rg.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OngleipWFontList';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2501-1@1.1/Ownglyph_wiseelist-Rg.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HancomSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2406-1@1.0/HancomSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: -moz-scrollbars-none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* 공통 유틸리티 클래스 */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.card-lg {
  border-radius: 16px;
  padding: 32px 40px;
}

.card-sm {
  padding: 16px 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.section-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.section-content.expanded {
  max-height: 5000px;
  margin-top: 16px;
}

/* 마우스 따라다니는 원 */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  display: none; /* 기본적으로 숨김 */
  opacity: 0;
}

/* 데스크톱에서만 표시 */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
  
  .custom-cursor.visible {
    opacity: 1;
  }
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.5);
}

/* 홈 페이지 전용 배경 */
body.home-page {
  background-image: url('/static/img/home-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body.home-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* IU 텍스트 스타일 */
.iu-container {
  position: fixed;
  top: 15vh;
  left: 0;
  width: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

h5.iu {
  font-family: 'IncheonEducation';
  font-size: 40px;
  font-weight: 300;
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: 1;
  position: relative;
  display: inline-block;
}

h1.iu-title {
  font-family: 'HancomSans';
  font-size: 100px;
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  z-index: 1;
  position: relative;
  display: inline-block;
}

/* 홈 페이지 파도 컨테이너 */
.wave-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* 홈 페이지 파도 SVG 스타일 */
.wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* Flash 메시지 아이콘 */
.flash-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.flash-success-icon {
  color: #4ade80;
}

.flash-error-icon {
  color: #f87171;
}

/* 알림 모달 */
.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.alert-modal.show {
  opacity: 1;
  pointer-events: all;
}

.alert-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* backdrop-filter 제거: 성능 최적화 */
}

.alert-modal-content {
  position: relative;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  /* backdrop-filter 제거: 성능 최적화 */
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.2s ease;
  color: var(--text-white);
}

.alert-modal.show .alert-modal-content {
  transform: scale(1) translateY(0);
}

.alert-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-white);
}

.alert-modal-success .alert-modal-icon {
  background: rgba(139, 195, 74, 0.2);
  color: #8bc34a;
}

.alert-modal-error .alert-modal-icon {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
}

.alert-modal-info .alert-modal-icon {
  background: rgba(138, 180, 255, 0.2);
  color: #8ab4ff;
}

.alert-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.alert-modal-body {
  padding: 24px;
  max-height: 50vh;
  overflow-y: auto;
}

.alert-modal-body p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-gray);
  white-space: pre-line;
}

.alert-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.alert-modal-footer .btn {
  min-width: 80px;
}

/* 업로드 아이콘 */
.upload-icon {
  display: block;
  margin: 0 auto 16px;
  color: var(--text-gray);
}

/* 제출 버튼 아이콘 */
.submit-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* 프로필 아바타 아이콘 */
.profile-avatar-icon {
  display: block;
  color: var(--text-gray);
}

/* 빈 상태 아이콘 */
.empty-icon {
  display: block;
  margin: 0 auto 16px;
  color: var(--text-gray);
}

/* 관리자 승인/거절 아이콘 */
.approve-icon,
.reject-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}



/* 우측 하단 프로필 버튼 */
.profile-button-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* 좌측 하단 언어 선택 버튼 */
.language-button-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.language-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-white);
}

.language-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.language-button:focus,
.language-button:active {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
}

.language-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.language-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-white);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  gap: 8px;
}

.language-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-menu-item.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.language-menu-item .language-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.profile-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.profile-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.profile-button:focus,
.profile-button:active {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
}

.profile-button-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-button-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-white);
  font-size: 24px;
  font-weight: 600;
  border-radius: 50%;
}

.home-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #1a1a1a82;
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-white);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.home-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #1a1a1a94;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.home-button:focus,
.home-button:active {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
}

.home-button svg {
  width: 24px;
  height: 24px;
}

/* 다운로드 모드 버튼 */
.download-mode-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #1a1a1a82;
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-white);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.download-mode-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #1a1a1a94;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.download-mode-button:focus,
.download-mode-button:active {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
}

.download-mode-button.active {
  border-color: rgba(129, 199, 132, 0.8);
  background: rgba(129, 199, 132, 0.2);
}

.download-mode-button svg {
  width: 24px;
  height: 24px;
}

/* 공통 하단 고정 버튼 스타일 (archive-upload-button, upload-archive-button은 이제 profile-button-container 내부로 이동) */

.archive-upload-btn,
.upload-archive-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #1a1a1a82;
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-white);
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.archive-upload-btn:hover,
.upload-archive-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: #1a1a1a94;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.archive-upload-btn:focus,
.archive-upload-btn:active,
.upload-archive-btn:focus,
.upload-archive-btn:active {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
}

.archive-upload-btn svg,
.upload-archive-btn svg {
  width: 24px;
  height: 24px;
}

.profile-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.profile-menu-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-menu-img-initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-white);
  font-size: 20px;
  font-weight: 600;
  border: 2px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-menu-info {
  flex: 1;
  min-width: 0;
}

.profile-menu-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-email {
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-item {
  display: block;
  padding: 12px 16px;
  color: var(--bg-dark);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.profile-menu-item.active {
  background: rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

/* 로그인 버튼 (로그아웃 상태) */
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.login-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: var(--text-white);
}

.login-button:focus,
.login-button:active {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
}

.login-button svg {
  width: 24px;
  height: 24px;
}

/* 버튼 컨테이너 (상단) */
.cta-container-top {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cta-container-top.visible {
  opacity: 1;
  visibility: visible;
}


.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: var(--text-white);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: rotate(90deg);
}

/* 로그인 버튼은 아이콘 회전 제외 */
.cta-button-login:hover svg {
  transform: none;
}

/* 컨테이너 */
.container {
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* 아카이브 뷰 전환 */
.archive-wrapper {
  position: relative;
  min-height: 100vh;
}

/* 상단 메뉴 바: 통계 + 태그 필터 + 뷰 전환 */
.archive-top-bar {
  max-width: 1200px;
  position: sticky;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  margin: 20px auto;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.archive-view-toggle {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0 8px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  height: 56px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.view-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.view-toggle-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-white);
}

.view-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.archive-stats {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 13px;
  flex-shrink: 0;
  height: 56px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
}

.archive-stat-item {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.archive-stat-item .stat-label {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  margin: 0;
  padding: 0;
}

.archive-stat-item .stat-value {
  color: var(--text-white);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  padding: 0;
}


/* 콘텐츠 영역 */
.archive-content-area {
  margin-top: 2rem;
}

/* 갤러리 뷰 */
.archive-gallery-view {
  width: 100%;
  min-height: 100vh;
  margin-bottom: 2rem;
}




/* 검색 입력칸 */
.search-filter {
  position: relative;
  flex: 1;
  min-width: 200px;
  flex-shrink: 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.search-icon {
  flex-shrink: 0;
  color: var(--text-gray);
  margin-right: 12px;
  width: 18px;
  height: 18px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-gray);
}

.search-clear-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  margin-left: 8px;
}

.search-clear-btn:hover {
  color: var(--text-white);
}

/* 태그 필터 드롭다운 */
.tag-filter-dropdown {
  position: relative;
  flex: 1;
  min-width: 0;
  flex-shrink: 0;
}

.tag-filter-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.tag-filter-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.tag-filter-label {
  flex: 1;
  text-align: left;
  margin-left: 1rem;
}

.tag-filter-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.tag-filter-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.tag-filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  width: 1000px;
  max-width: 100%;
}

.tag-filter-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tag-filter-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.tag-filter-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tag-filter-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.tag-filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 정렬 드롭다운 (태그와 동일한 스타일) */
.sort-dropdown {
  position: relative;
  flex-shrink: 0;
  min-width: 120px;
}

.sort-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.sort-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.sort-label {
  flex: 1;
  text-align: left;
}

.sort-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  min-width: 150px;
}

.sort-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-white);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sort-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sort-option.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.sort-check {
  flex-shrink: 0;
  color: rgba(129, 199, 132, 0.9);
}

/* 언어 선택 드롭다운 (정렬과 동일한 스타일) */
.language-dropdown {
  position: relative;
  flex-shrink: 0;
  min-width: 120px;
}

.language-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.language-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.language-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.language-label {
  flex: 1;
  text-align: left;
}

.language-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  min-width: 150px;
}

.language-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-white);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-option.active {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.language-check {
  flex-shrink: 0;
  color: rgba(129, 199, 132, 0.9);
}

.tag-filter-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  overflow: visible;
  width: 100%;
}

.tag-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-filter-btn .tag-name {
  flex-shrink: 0;
}

.tag-filter-btn .tag-count {
  font-size: 12px;
  color: var(--text-gray);
  margin-left: 0;
}

.tag-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.tag-filter-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-date-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-date-header {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-white);
  padding: 0.5rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 0;
}

.gallery-photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.gallery-photo-item:hover {
  transform: scale(1.05);
  z-index: 10;
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* 이미지 렌더링 최적화 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  will-change: opacity;
  /* 하드웨어 가속 */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.loading-indicator {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-indicator p {
  margin: 0;
  font-size: 14px;
}

.gallery-empty-state {
  text-align: center;
  padding: 80px 20px;
  margin: 0 auto;
  color: var(--text-gray);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-empty-state p {
  font-size: 18px;
  margin: 0;
}

/* 날짜별 리스트 뷰 */
.archive-list-view {
  width: 100%;
}

/* 아카이브 날짜별 아코디언 */
.archive-container {
  max-width: 1200px;
  margin: auto;
}

.date-accordion {
  margin: 1rem;
}

.year-item, .month-item, .day-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 5px;
  overflow: hidden;
}

.year-header, .month-header, .day-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  border-radius: 0.5rem;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  user-select: none;
}

.year-header:hover, .month-header:hover, .day-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.year-title, .month-title, .day-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}

.expand-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: transform 0.3s ease;
}

.expanded .expand-icon {
  transform: rotate(90deg);
}

.year-content, .month-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.year-item.expanded .year-content,
.month-item.expanded .month-content {
  max-height: 5000px;
}

.month-list, .day-list {
  padding: 10px 20px;
}

.day-content {
  padding: 16px 20px;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.day-item.expanded .day-content {
  display: grid;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.05);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 이미지 렌더링 최적화 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  will-change: opacity;
  /* 하드웨어 가속 */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.3s ease;
}

.photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 12px;
  color: var(--text-white);
  font-size: 12px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-gray);
  min-height: 60vh;
  align-items: center;
  justify-content: center;
}

.empty-state p {
  font-size: 18px;
  margin: 0;
}

/* 폼 스타일 */
.form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-white);
  font-size: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 14px;
  margin-bottom: 16px;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--text-gray);
}

.form button {
  width: 100%;
  padding: 14px;
  background: var(--text-white);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form button:hover {
  background: var(--text-gray);
}

/* 플래시 메시지 개선 */
.flash {
  list-style: none;
  padding: 0;
  margin: 0;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  max-width: 500px;
  width: 90%;
}

.flash li {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash li.success {
  background: rgba(76, 175, 80, 0.95);
  color: white;
  border-color: rgba(76, 175, 80, 0.5);
}

.flash li.error {
  background: rgba(244, 67, 54, 0.95);
  color: white;
  border-color: rgba(244, 67, 54, 0.5);
}

.flash li.warning {
  background: rgba(255, 152, 0, 0.95);
  color: white;
  border-color: rgba(255, 152, 0, 0.5);
}

.flash li.info {
  background: rgba(33, 150, 243, 0.95);
  color: white;
  border-color: rgba(33, 150, 243, 0.5);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 업로드 페이지 스타일 */
.upload-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 40px 20px;
}

.upload-header {
  text-align: center;
  margin-bottom: 40px;
}

.upload-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.upload-subtitle {
  color: var(--text-gray);
  font-size: 16px;
}

.upload-stats {
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0;
}

.stat-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #81c784, #a5d6a7);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.upload-form-container {
  padding: 40px;
  border-radius: 16px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 날짜 입력 필드 영역 클릭 가능 */
.form-group:has(input[type="date"]) {
  cursor: pointer;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

/* 날짜 입력 필드 달력 아이콘 스타일 */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Firefox용 달력 아이콘 */
.form-group input[type="date"]::-moz-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

.form-group input[type="date"]::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-group small {
  font-size: 12px;
  color: var(--text-gray);
}

/* 행사명 추천 목록 */
.event-name-input-wrapper {
  position: relative;
}

.event-name-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.suggestions-title {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-gray);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text-white);
  font-size: 14px;
  transition: background 0.2s ease;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.suggestion-item:first-child {
  border-top: none;
}

.event-name-suggestions::-webkit-scrollbar {
  width: 6px;
}

.event-name-suggestions::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.event-name-suggestions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.event-name-suggestions::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 태그 추천 목록 (행사명과 동일한 스타일) */
.tags-input-wrapper {
  position: relative;
}

.tags-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tags-suggestions::-webkit-scrollbar {
  width: 6px;
}

.tags-suggestions::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tags-suggestions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.tags-suggestions::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 이미지 모달 */
.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-modal.show {
  display: flex;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  /* backdrop-filter 제거: 성능 최적화 */
  /* backdrop-filter: blur(4px); */
}

.image-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.image-modal__content img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  /* 이미지 렌더링 최적화 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  /* 하드웨어 가속 */
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.image-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.image-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.image-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2001;
  user-select: none;
  padding: 0;
}

.image-modal__nav svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: block;
}

.image-modal__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.image-modal__nav--prev {
  left: 16px;
}

.image-modal__nav--next {
  right: 16px;
}

.image-modal__info {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
}

/* 갤러리 사진 선택 모드 스타일 */
.gallery-photo-item {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-photo-item.selected,
.photo-item.selected {
  opacity: 0.7;
  border: 3px solid rgba(129, 199, 132, 0.8);
}

.photo-checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(129, 199, 132, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 다운로드 선택 바 */
.download-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.download-selection-info {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
}

.download-selection-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(129, 199, 132, 0.9);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-selection-btn:hover {
  background: rgba(129, 199, 132, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(129, 199, 132, 0.4);
}

.download-selection-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.download-selection-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.file-upload-area {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  min-height: 200px;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.file-upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.file-upload-area.has-files input[type="file"] {
  pointer-events: none;
  z-index: 0;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-gray);
}

/* .file-upload-placeholder svg는 .upload-icon으로 대체됨 */

.file-upload-placeholder p {
  font-size: 16px;
  color: var(--text-white);
  margin: 0;
}

.file-upload-placeholder small {
  font-size: 12px;
}

.file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
}

.file-info span {
  font-size: 14px;
}

/* 다중 파일 업로드 스타일 */
.file-list {
  width: 100%;
  margin-top: 16px;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.file-list-header span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
}

.clear-files-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-gray);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.clear-files-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-white);
}

#fileItems {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: visible;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.file-item-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item-size {
  font-size: 12px;
  color: var(--text-gray);
  white-space: nowrap;
}

.file-item-remove {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.file-item-remove:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff5555;
}

/* 업로드 진행 상황 표시 */
#uploadProgress {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-progress-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-progress-header span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
}

.upload-progress-header span:last-child {
  font-size: 12px;
  color: var(--text-gray);
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.upload-progress-text {
  font-size: 12px;
  color: var(--text-gray);
  margin: 0;
  font-style: italic;
}

.submit-btn {
  padding: 16px 32px;
  background: var(--text-white);
  color: var(--bg-dark);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.submit-btn:hover {
  background: var(--text-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.form-note {
  text-align: center;
  margin-top: 16px;
}

.form-note p {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

/* 전역 로딩 오버레이 */
.global-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.global-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.global-loading-content .loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0;
  border-width: 4px;
}

.global-loading-text {
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* 페이지 전환 로딩 오버레이 */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* 다른 모든 요소보다 위에 */
  animation: fadeIn 0.15s ease;
}

.page-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.2);
}

.page-transition-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(147, 51, 234, 0.2);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-transition-text {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
}

/* 관리자용 사진 삭제 버튼 */
.photo-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.gallery-photo-item:hover .photo-delete-btn,
.photo-item:hover .photo-delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.photo-delete-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.photo-delete-btn:active {
  transform: scale(0.95);
}

/* 프로필 페이지 스타일 */
.profile-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 40px 20px;
}

.profile-header {
  margin-bottom: 32px;
}

.profile-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.profile-card {
  padding: 32px;
  margin-bottom: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  border-radius: 16px;
}

.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  color: var(--text-gray);
}

.profile-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-badge.admin {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.profile-badge.user {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.info-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
  flex-shrink: 0;
  min-width: fit-content;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
  flex-shrink: 0;
  min-width: fit-content;
}

.contact-section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.contact-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-card {
  padding: 20px;
}

.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  margin-top: 2px;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-email {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.info-value {
  font-size: 15px;
  color: var(--text-white);
  font-weight: 600;
  word-break: break-all;
  overflow-wrap: break-word;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.upload-history-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

.photo-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-list-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.3s ease;
}

.photo-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.photo-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  gap: 8px;
}

.photo-thumbnail-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.photo-thumbnail-placeholder span {
  font-size: 10px;
  opacity: 0.7;
}

.photo-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}

.photo-meta {
  font-size: 13px;
  color: var(--text-gray);
  display: flex;
  gap: 8px;
  align-items: center;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.approved {
  background: rgba(129, 199, 132, 0.2);
  color: #81c784;
}

.status-badge.pending {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.status-badge.rejected {
  background: rgba(229, 115, 115, 0.2);
  color: #e57373;
}

.empty-action-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.empty-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 프로필 페이지 날짜별 그룹 */
.profile-date-groups {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.profile-date-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-date-header {
  padding: 14px 18px;
}

.profile-date-header-left {
  gap: 12px;
}

.profile-date-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
}

.profile-date-section .date-photo-count {
  font-size: 13px;
  color: var(--text-gray);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

.date-expand-icon {
  font-size: 14px;
  color: var(--text-gray);
  transition: transform 0.3s ease;
  display: inline-block;
}

.profile-photos-container {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.profile-date-section.expanded .profile-photos-container {
  max-height: 5000px;
}

.profile-date-section .photo-list {
  margin-top: 0;
}

/* 관리자 페이지 스타일 */
.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 40px 20px;
}

.admin-header {
  margin-bottom: 32px;
  text-align: center;
}

.admin-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.admin-header p {
  color: var(--text-gray);
  font-size: 16px;
}

.pending-count {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-white);
}

.pending-count strong {
  color: #ff9800;
  font-size: 18px;
}

/* 관리자 설정 섹션 */
.admin-settings-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.admin-settings-header {
  margin-bottom: 20px;
}

.admin-settings-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
}

.admin-settings-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-info {
  flex: 1;
  margin-right: 5rem;
}

.setting-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.setting-description {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

.setting-toggle-btn {
  position: relative;
  width: 60px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.setting-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.setting-toggle-btn.active {
  background: rgba(129, 199, 132, 0.3);
  border-color: rgba(129, 199, 132, 0.5);
  justify-content: flex-end;
}

.setting-toggle-btn .toggle-label {
  position: absolute;
  right: 100%;
  margin-right: 6px;
  font-size: 13px;
  color: var(--text-white);
  white-space: nowrap;
  text-align: right;
  pointer-events: none;
}

.setting-toggle-btn .toggle-indicator {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.setting-toggle-btn.active .toggle-indicator {
  background: rgba(129, 199, 132, 0.9);
  box-shadow: 0 2px 8px rgba(129, 199, 132, 0.4);
}

/* 날짜별 그룹 */
.admin-date-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.admin-date-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-date-header {
  padding: 16px 20px;
  margin-bottom: 8px;
}

.admin-date-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
}

.date-photo-count {
  font-size: 14px;
  color: var(--text-gray);
  background: rgba(255, 152, 0, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
}

/* 사용자별 그룹 */
.admin-user-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-left: 20px;
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.admin-user-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-expand-icon {
  font-size: 12px;
  color: var(--text-gray);
  transition: transform 0.3s ease;
  display: inline-block;
}

.user-blocked-badge {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.user-block-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(244, 67, 54, 0.5);
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  cursor: pointer;
  transition: all 0.2s;
}

.user-block-btn:hover {
  background: rgba(244, 67, 54, 0.2);
  border-color: #f44336;
}

.user-block-btn.unblock {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.user-block-btn.unblock:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
}

.user-email {
  font-size: 13px;
  color: var(--text-gray);
}

.user-photo-count {
  font-size: 13px;
  color: var(--text-gray);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
}

/* 사진 컨테이너 (아코디언) */
.admin-photos-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.admin-user-section.expanded .admin-photos-container {
  padding-top: 20px;
}

/* 사진 그리드 */
.admin-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 0;
}

.admin-photo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.admin-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-photo-card.selected {
  border-color: rgba(129, 199, 132, 0.8);
  border-width: 2px;
  background: rgba(129, 199, 132, 0.05);
}

.photo-checkbox-wrapper {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}

.photo-zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.9);
}

.photo-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: scale(1.1);
}

.photo-zoom-btn:active {
  transform: scale(0.95);
}

.photo-zoom-btn svg {
  width: 18px;
  height: 18px;
}

.photo-checkbox {
  display: none;
}

.photo-checkbox-label {
  display: block;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.photo-checkbox-label:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
}

.photo-checkbox:checked + .photo-checkbox-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 일괄 처리 버튼 */
.admin-batch-actions {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  min-width: 400px;
  justify-content: space-between;
}

.batch-actions-info {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
}

.batch-actions-info span {
  font-size: 18px;
}

.batch-actions-buttons {
  display: flex;
  gap: 8px;
}

.batch-action-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.batch-approve-btn {
  background: rgba(129, 199, 132, 0.2);
  color: #81c784;
  border: 1px solid rgba(129, 199, 132, 0.3);
}

.batch-approve-btn:hover {
  background: rgba(129, 199, 132, 0.3);
  transform: translateY(-1px);
}

.batch-reject-btn {
  background: rgba(229, 115, 115, 0.2);
  color: #e57373;
  border: 1px solid rgba(229, 115, 115, 0.3);
}

.batch-reject-btn:hover {
  background: rgba(229, 115, 115, 0.3);
  transform: translateY(-1px);
}

.batch-cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.batch-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.admin-photo-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.admin-photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.admin-photo-card:hover .admin-photo-thumbnail img {
  transform: scale(1.05);
}

.admin-photo-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.photo-info-row .info-label {
  color: var(--text-gray);
  font-size: 11px;
}

.photo-info-row .info-value {
  color: var(--text-white);
  font-size: 12px;
  text-align: right;
  word-break: break-word;
  flex: 1;
}

.admin-photo-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.action-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.approve-btn {
  background: white;
  color: #333;
  border: none;
}

.approve-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.reject-btn {
  background: #1a1a1a;
  color: white;
  border: 1px solid white;
}

.reject-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

/* 반응형 */
@media (max-width: 850px) {
  h1.iu-title {
    font-size: 60px;
  }

  .container {
    margin-top: 0;
  }

  .iu-container {
    top: 8rem;
  }

  .action-btn{
    padding: 5px;
  }
  .archive-container{
    margin: auto;
  }

  .archive-wrapper {
    padding-top: 1rem;
    margin: 0 1rem;
  }

  .archive-top-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tag-filter-dropdown {
    order: 3;
    flex: 1 1 calc(33.33% - 8px);
    min-width: 0;
    width: calc(33.33% - 8px);
  }

  .sort-dropdown {
    order: 4;
    flex: 1 1 calc(33.33% - 8px);
    min-width: 0;
    width: calc(33.33% - 8px);
  }

  .language-dropdown {
    order: 5;
    flex: 1 1 calc(33.33% - 8px);
    min-width: 0;
    width: calc(33.33% - 8px);
  }

  .archive-view-toggle {
    order: 2;
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0;
    padding: 6px;
    gap: 4px;
    height: 44px;
    width: auto;
    flex-shrink: 0;
  }

  .view-toggle-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .view-toggle-btn svg {
    width: 16px;
    height: 16px;
  }

  .view-toggle-btn span {
    display: none;
  }

  .gallery-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 4px;
  }

  .gallery-date-header {
    font-size: 20px;
  }

  .gallery-container {
    gap: 2rem;
    padding: 0 0.5rem;
  }

  .archive-list-view .archive-gallery-view{
    padding: 1rem;
  }

  .archive-stats {
    flex: auto;
    padding: 0 16px;
    gap: 12px;
    height: 44px;
    font-size: 11px;
    order: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  .archive-stat-item .stat-label {
    font-size: 12px;
  }

  .archive-stat-item .stat-value {
    font-size: 12px;
    padding: 0;
  }

  .tag-filter-dropdown-btn {
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .tag-filter-dropdown-menu {
    max-height: 300px;
    min-width: 200px;
    width: 100%;
    left: 0;
    right: 0;
    transform: translateY(-10px);
    box-sizing: border-box;
  }
  
  .tag-filter-dropdown-menu.show {
    transform: translateY(0);
  }

  .tag-filter-list {
    gap: 4px;
  }

  .tag-filter-btn {
    font-size: 11px;
    padding: 4px 8px;
    gap: 4px;
  }

  .sort-dropdown-btn {
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .sort-dropdown-menu {
    min-width: 120px;
  }

  .sort-option {
    padding: 8px 12px;
    font-size: 12px;
  }

  .language-dropdown-btn {
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .language-dropdown-menu {
    min-width: 120px;
  }

  .language-option {
    padding: 8px 12px;
    font-size: 12px;
  }

  .gallery-empty-state {
    padding: 60px 20px;
    min-height: 50vh;
  }

  .gallery-empty-state p {
    font-size: 16px;
  }

  .empty-state {
    padding: 60px 20px;
    min-height: 50vh;
  }

  .empty-state p {
    font-size: 16px;
  }

  .day-content {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  .upload-stats {
    grid-template-columns: 1fr;
  }

  .upload-form-container {
    margin-top: 2rem;
    padding: 24px;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    gap: 24px;
  }

  .profile-avatar-section {
    width: 100%;
  }

  .profile-info {
    width: 100%;
  }

  .info-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }

  .info-label {
    min-width: 60px;
    flex-shrink: 0;
  }

  .info-value {
    text-align: right;
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
  }

  .admin-date-section {
    gap: 1rem;
  }

  .admin-user-section {
    margin-left: 0;
    padding: 12px;
  }

  .admin-user-header {
    padding: 12px 16px;
  }

  .user-header-right {
    gap: 8px;
    align-items: center;
  }

  .admin-photos-container {
    margin-top: 12px;
  }

  .admin-user-section.expanded .admin-photos-container {
    margin-top: 12px;
  }

  .admin-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .admin-batch-actions {
    left: 16px;
    right: 16px;
    transform: none;
    min-width: auto;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .date-accordion{
    margin: 0px;
  }

  .batch-actions-buttons {
    width: 100%;
    flex-direction: column;
  }

  .batch-action-btn {
    width: 100%;
  }

  .photo-checkbox-label {
    width: 20px;
    height: 20px;
  }

  .admin-date-header {
    flex-direction : row;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-user-header {
    align-items: center;
    gap: 12px;
  }

  .profile-date-header {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .profile-date-header-left {
    flex: 1;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .profile-date-header h3 {
    font-size: 16px;
  }

  .profile-date-section .date-photo-count {
    font-size: 12px;
  }

  .date-expand-icon {
    font-size: 12px;
  }

  .photo-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-thumbnail {
    width: 100%;
    height: 200px;
  }

  .profile-button-container {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .language-button-container {
    bottom: 16px;
    left: 16px;
  }

  .language-button {
    width: 48px;
    height: 48px;
  }

  .language-menu {
    bottom: calc(100% + 10px);
    min-width: 120px;
  }

  .profile-button {
    width: 48px;
    height: 48px;
  }

  .download-mode-button {
    width: 48px;
    height: 48px;
  }

  .download-mode-button svg {
    width: 20px;
    height: 20px;
  }

  .home-button {
    width: 48px;
    height: 48px;
  }

  .home-button svg {
    width: 20px;
    height: 20px;
  }


  .archive-upload-btn,
  .upload-archive-btn {
    width: 48px;
    height: 48px;
  }

  .archive-upload-btn svg,
  .upload-archive-btn svg {
    width: 20px;
    height: 20px;
  }

  .profile-menu {
    bottom: 64px;
    min-width: 260px;
  }

  .login-button {
    width: 48px;
    height: 48px;
  }

  .login-button svg {
    width: 20px;
    height: 20px;
  }

  .cta-container-top {
    gap: 12px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 16px;
  }

  .image-modal__nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .image-modal__nav--prev {
    left: 8px;
  }

  .image-modal__nav--next {
    right: 8px;
  }

  .image-modal__info {
    bottom: 8px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .download-selection-bar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .download-selection-info {
    font-size: 14px;
    flex: 1;
  }

  .download-selection-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .download-selection-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .photo-checkmark {
    width: 24px;
    height: 24px;
    font-size: 16px;
    top: 4px;
    right: 4px;
  }
}

/* 작은 모바일 화면 (아이폰 등) */
@media (max-width: 480px) {
  .profile-container {
    padding: 20px 12px;
  }

  .profile-card {
    padding: 20px 12px;
    gap: 20px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-avatar-placeholder {
    width: 100px;
    height: 100px;
  }

  .info-item {
    gap: 8px;
    padding-bottom: 12px;
  }

  .info-label {
    font-size: 13px;
    min-width: 50px;
  }

  .info-value {
    font-size: 14px;
    text-align: right;
  }

  .profile-header h1 {
    font-size: 28px;
  }

  .contact-section h2,
  .upload-history-section h2 {
    font-size: 18px;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-info {
    gap: 12px;
  }

  .contact-email {
    font-size: 14px;
  }

  /* 헤더 및 타이틀 */
  h1.iu-title {
    font-size: 40px;
  }

  .upload-header h1,
  .admin-header h1 {
    font-size: 28px;
  }

  .upload-subtitle {
    font-size: 14px;
  }

  .admin-header p {
    font-size: 14px;
  }

  /* 버튼들 */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    gap: 6px;
  }

  .home-button,
  .download-mode-button,
  .archive-upload-btn,
  .upload-archive-btn,
  .login-button {
    width: 48px;
    height: 48px;
  }

  .home-button svg,
  .download-mode-button svg,
  .archive-upload-btn svg,
  .upload-archive-btn svg,
  .login-button svg {
    width: 20px;
    height: 20px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 16px;
    gap: 8px;
  }

  /* 카드 및 컨테이너 */
  .card-lg {
    padding: 24px 20px;
  }

  .card-sm {
    padding: 12px 16px;
  }

  .container {
    padding: 0 12px;
  }

  /* 섹션 헤더 */
  .section-header {
    padding: 12px 14px;
    font-size: 14px;
  }

  .section-header-left {
    gap: 8px;
  }

  .admin-date-header,
  .admin-user-header {
    padding: 12px 16px;
  }

  .admin-date-header h2 {
    font-size: 18px;
  }

  .pending-count {
    padding: 12px 16px;
    font-size: 14px;
  }

  .pending-count strong {
    font-size: 16px;
  }

  /* 폼 요소들 */
  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 14px;
    padding: 10px 14px;
  }

  .form input,
  .form textarea,
  .form select {
    font-size: 14px;
    padding: 10px 14px;
  }

  .form-group small {
    font-size: 12px;
  }

  /* 업로드 페이지 */
  .upload-container {
    padding: 20px 12px;
  }

  .upload-stats {
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-value {
    font-size: 20px;
  }

  /* 프로필 메뉴 */
  .profile-menu {
    min-width: 240px;
    bottom: 60px;
  }

  .profile-menu-header {
    padding: 12px;
    gap: 10px;
  }

  .profile-menu-img,
  .profile-menu-img-initial {
    width: 40px;
    height: 40px;
  }

  .profile-menu-name {
    font-size: 13px;
  }

  .profile-menu-email {
    font-size: 11px;
  }

  .profile-menu-item {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* 아카이브 페이지 */
  .archive-container {
    padding: 12px;
  }

  .archive-wrapper {
    padding-top: 0.5rem;
    margin: 0 0.5rem;
  }

  .archive-top-bar {
    top: 12px;
    gap: 6px;
    padding: 0px 6px;
  }

  .gallery-date-header {
    font-size: 18px;
  }

  .gallery-container {
    gap: 1.5rem;
    padding: 0 0.25rem;
  }

  .gallery-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 3px;
  }

  /* 관리자 페이지 */
  .admin-container {
    padding: 20px 12px;
  }

  .admin-date-groups {
    gap: 2rem;
  }

  .admin-user-section {
    padding: 12px;
  }

  .admin-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  /* 다운로드 선택 바 */
  .download-selection-bar {
    padding: 10px 12px;
    gap: 10px;
  }

  .download-selection-info {
    font-size: 13px;
  }

  .download-selection-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .download-selection-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  /* 빈 상태 */
  .empty-state,
  .gallery-empty-state {
    padding: 40px 16px;
    min-height: 40vh;
  }

  .empty-state p,
  .gallery-empty-state p {
    font-size: 14px;
  }

  .empty-icon {
    width: 48px;
    height: 48px;
  }

  /* 태그 및 정렬 드롭다운 */
  .tag-filter-dropdown-btn,
  .sort-dropdown-btn,
  .language-dropdown-btn {
    height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .tag-filter-btn {
    font-size: 10px;
    padding: 3px 6px;
    gap: 3px;
  }
  
  .tag-filter-dropdown-menu {
    min-width: 200px;
    width: auto;
    max-width: calc(100vw - 32px);
    left: auto;
    right: 0;
    transform: translateY(-10px);
    box-sizing: border-box;
  }
  
  .tag-filter-dropdown-menu.show {
    transform: translateY(0);
  }

  .sort-option,
  .language-option {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* 통계 */
  .archive-stats {
    padding: 0 12px;
    gap: 10px;
    font-size: 10px;
    height: 40px;
  }

  .archive-stat-item .stat-label {
    font-size: 11px;
  }

  .archive-stat-item .stat-value {
    font-size: 11px;
  }

  /* 뷰 전환 버튼 */
  .archive-view-toggle {
    padding: 4px;
    gap: 3px;
    height: 40px;
  }

  .view-toggle-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .view-toggle-btn svg {
    width: 14px;
    height: 14px;
  }

  /* 프로필 버튼 컨테이너 */
  .profile-button-container {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }

  .profile-button {
    width: 44px;
    height: 44px;
  }

  .language-button-container {
    bottom: 12px;
    left: 12px;
  }

  .language-button {
    width: 44px;
    height: 44px;
  }

  .language-menu {
    bottom: calc(100% + 8px);
    min-width: 110px;
  }

  /* 사진 리스트 아이템 */
  .photo-list-item {
    padding: 12px;
    gap: 12px;
  }

  .photo-title {
    font-size: 14px;
  }

  .photo-meta {
    font-size: 12px;
  }

  .status-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}
