/* KoJa 웹앱 메인 스타일시트 */

/* ===== 기본 설정 ===== */
:root {
  /* 컬러 시스템 */
  --primary-color: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #7c3aed;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  
  /* 그레이 스케일 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* 상태 컬러 */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  
  /* 그라데이션 */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  
  /* 간격 */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* 폰트 크기 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  
  /* 그림자 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 레이아웃 */
  --header-height: 64px;
  --mobile-nav-height: 70px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  /* Z-index */
  --z-modal: 1000;
  --z-toast: 1100;
  --z-header: 100;
  --z-mobile-nav: 90;
}

/* ===== 기본 리셋 및 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== 로딩 스크린 ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

.loading-spinner {
  text-align: center;
  color: white;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-lg);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== 앱 컨테이너 ===== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--mobile-nav-height);
}

/* ===== 헤더 ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  z-index: var(--z-header);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background-color: var(--gray-100);
}

.header-btn .material-icons {
  color: var(--gray-600);
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
  flex: 1;
  margin-top: var(--header-height);
  padding: var(--space-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-content {
  padding-bottom: var(--space-2xl);
}

/* ===== 모바일 네비게이션 ===== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: white;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-mobile-nav);
  backdrop-filter: blur(10px);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--border-radius-sm);
  min-width: 60px;
}

.nav-item:hover {
  background-color: var(--gray-100);
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item .material-icons {
  font-size: 24px;
  margin-bottom: var(--space-xs);
}

.nav-item span {
  font-size: var(--text-xs);
  font-weight: 500;
}

/* ===== 상태 카드 ===== */
.status-card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-info h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.remaining-count {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.remaining-count span:first-child {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary-color);
}

.remaining-count span:last-child {
  font-size: var(--text-xl);
  color: var(--gray-500);
}

.refresh-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== 필터 섹션 ===== */
.filter-section {
  margin-bottom: var(--space-xl);
}

.filter-section h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--gray-700);
}

.filter-chips {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-chip {
  padding: var(--space-sm) var(--space-lg);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--primary-color);
  background-color: var(--gray-50);
}

.filter-chip.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* ===== 사용자 그리드 ===== */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.user-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.user-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.user-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.user-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-card-content {
  padding: var(--space-lg);
}

.user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.user-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
}

.user-age {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.verification-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--success-color);
  font-weight: 500;
}

.verification-badge .material-icons {
  font-size: 16px;
}

.user-intro {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.user-tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.user-card-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--gray-300);
  background-color: var(--gray-50);
}


/* ===== 토스트 메시지 ===== */
.toast {
  position: fixed;
  top: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  animation: slideDown 0.3s ease;
}

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

.toast.success {
  background: var(--success-color);
}

.toast.error {
  background: var(--error-color);
}

.toast.warning {
  background: var(--warning-color);
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
  :root {
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
  }
  
  .main-content {
    padding: var(--space-md);
  }
  
  .users-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    padding: 0 var(--space-md);
  }
  
  .status-card {
    padding: var(--space-md);
  }
  
  .filter-chips {
    overflow-x: auto;
    padding-bottom: var(--space-sm);
  }
  
  .filter-chips::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: var(--text-xl);
  }
  
  .user-card-content {
    padding: var(--space-md);
  }
  
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
  }
}

/* ===== 유틸리티 클래스 ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--gray-600); }
.text-danger { color: var(--error-color); }
.text-success { color: var(--success-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-white { background-color: white; }

.hidden { display: none !important; }
.visible { display: block !important; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ===== 프로필 페이지 스타일 ===== */
.profile-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.profile-image-container {
  position: relative;
}

.profile-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}

.edit-image-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.edit-image-btn:hover {
  background: var(--primary-dark);
}

.profile-info h2 {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--gray-900);
}

.profile-info p {
  margin: var(--space-sm) 0 0 0;
  color: var(--gray-600);
}

.verification-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--success-color);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
}

.profile-section {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.section-header h3 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
}

.edit-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.profile-field {
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.profile-field label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

.field-value {
  display: block;
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--border-radius);
  color: var(--gray-900);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 20px;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.field-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  transition: all 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-input select {
  cursor: pointer;
}

.field-input textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  font-family: inherit;
  white-space: pre-wrap;
}

.profile-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.save-btn {
  flex: 1;
  padding: var(--space-md);
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.cancel-btn {
  flex: 1;
  padding: var(--space-md);
  background: var(--gray-500);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: var(--gray-600);
  transform: translateY(-1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .field-value {
    font-size: var(--text-sm);
    padding: var(--space-sm);
    line-height: 1.4;
  }
  
  .profile-field label {
    font-size: var(--text-xs);
  }
  
  .field-input {
    font-size: var(--text-sm);
    padding: var(--space-sm);
  }
}

/* ===== 이메일 인증 스타일 ===== */
.company-email-field .field-value-container,
.company-email-setup .email-verification-container {
  width: 100%;
}

.email-input-group,
.code-input-group {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.verify-email-btn,
.confirm-code-btn,
.resend-code-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 60px;
}

.verify-email-btn:hover,
.confirm-code-btn:hover,
.resend-code-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.verify-email-btn:disabled,
.confirm-code-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
}

.resend-code-btn {
  background: var(--gray-500);
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  margin-top: var(--space-sm);
  align-self: flex-end;
}

.resend-code-btn:hover {
  background: var(--gray-600);
}

.verification-code-section {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.verification-code-input {
  flex: 1;
  max-width: 120px;
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 2px;
  padding: var(--space-md);
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.verification-code-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.verification-status {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

.verification-status.success {
  color: var(--success-color);
}

.verification-status.error {
  color: var(--error-color);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--success-color);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-left: var(--space-sm);
}

.verified-badge::before {
  content: '✓';
  font-weight: 700;
}

.current-verification-info {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--success-color);
}

.current-verification-info small {
  display: block;
  margin-bottom: var(--space-xs);
}

.current-verification-info small:last-child {
  margin-bottom: 0;
}

/* 모바일에서 이메일 인증 최적화 */
@media (max-width: 768px) {
  .email-input-group,
  .code-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .verify-email-btn,
  .confirm-code-btn {
    width: 100%;
    margin-top: var(--space-sm);
  }
  
  .verification-code-input {
    max-width: none;
    margin-bottom: var(--space-sm);
  }
  
  .resend-code-btn {
    align-self: stretch;
    margin-top: var(--space-sm);
  }
}

/* 고급 필터 모달 스타일 */
.filter-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.advanced-filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all 0.3s ease;
}

.advanced-filter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.filter-toggle-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.filter-content {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-content.active {
    opacity: 1;
    pointer-events: all;
}

.filter-group {
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--gray-200);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.filter-group-header i {
    font-size: 20px;
}

.filter-group-header h4 {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 600;
}

.filter-group-content {
    margin-left: 28px;
}

/* 범위 슬라이더 스타일 */
.range-slider-container {
    margin-bottom: var(--space-md);
}

.range-slider-container:last-child {
    margin-bottom: 0;
}

.range-slider-container label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.dual-range-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* 라디오 버튼 스타일 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    background: var(--gray-100);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    margin-top: 2px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.radio-text {
    flex: 1;
}

.radio-label {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.radio-desc {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* 토글 스위치 스타일 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: 12px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* 사용자 정의 필터 칩 스타일 */
.filter-chip {
    position: relative;
}

.filter-chip.custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.filter-chip.custom i {
    font-size: 16px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .filter-modal {
        max-width: 95vw;
        max-height: 95vh;
        margin: 0;
    }
    
    .filter-group {
        padding: var(--space-md);
    }
    
    .filter-group-content {
        margin-left: 0;
    }
    
    .dual-range-container {
        gap: var(--space-lg);
    }
    
    .advanced-filter-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-xs);
    }
    
    .advanced-filter-btn .material-icons {
        font-size: 18px;
    }
}



/* ===== 채팅 메뉴 드롭다운 스타일 ===== */
.chat-menu-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    z-index: 1000;
    min-width: 180px;
}

.chat-menu-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: var(--text-sm);
    color: var(--gray-700);
}

.chat-menu-dropdown .menu-item:hover {
    background: var(--gray-50);
}

.chat-menu-dropdown .menu-item:first-child {
    border-bottom: 1px solid var(--gray-100);
}

.chat-menu-dropdown .menu-item i {
    color: var(--gray-500);
    font-size: 20px;
}

.chat-menu-dropdown .menu-item:hover i {
    color: var(--error-color);
}

/* ===== 모달 오버레이 스타일 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-lg);
}

.modal-container {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-500);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-content {
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-200);
    justify-content: flex-end;
}

/* ===== 라디오 옵션 스타일 ===== */
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    background: var(--gray-100);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* ===== 신고하기 다이얼로그 스타일 ===== */
.report-description {
    color: var(--gray-600);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.report-options .radio-option {
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.report-options .radio-option:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

.report-options .radio-option input:checked + .radio-custom + .radio-text {
    color: var(--primary-color);
}

.radio-text strong {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.radio-text p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.input-group {
    margin-top: var(--space-lg);
}

.input-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.input-group textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: var(--text-sm);
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-count {
    text-align: right;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* ===== 차단하기 다이얼로그 스타일 ===== */
.block-warning {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--warning-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning-color);
}

.block-warning i {
    color: var(--warning-color);
    font-size: 24px;
    margin-top: 2px;
}

.block-warning p {
    margin: 0;
    line-height: 1.5;
}

.block-warning p:first-child {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.block-description {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ===== 성공 다이얼로그 스타일 ===== */
.success-content {
    text-align: center;
    padding: var(--space-xl);
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: var(--space-lg);
    display: block;
}

.success-content h3 {
    margin: 0 0 var(--space-md) 0;
    color: var(--gray-800);
}

.success-content p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.5;
    white-space: pre-line;
}

/* ===== 알림 권한 프롬프트 ===== */
.permission-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    max-width: 400px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.permission-content {
    display: flex;
    align-items: flex-start;
    padding: var(--space-lg);
    gap: var(--space-md);
}

.permission-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.permission-icon i {
    font-size: 1.5rem;
}

.permission-text {
    flex: 1;
}

.permission-text h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-800);
}

.permission-text p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.4;
}

.permission-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.permission-btn {
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    border: none;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.permission-btn.allow {
    background: var(--primary-color);
    color: white;
}

.permission-btn.allow:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

.permission-btn.deny {
    background: var(--gray-100);
    color: var(--gray-600);
}

.permission-btn.deny:hover {
    background: var(--gray-200);
}

/* 모바일에서 권한 프롬프트 */
@media (max-width: 768px) {
    .permission-banner {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .permission-content {
        padding: var(--space-md);
    }
    
    .permission-actions {
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .permission-btn {
        flex: 1;
    }
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 640px) {
    .chat-menu-dropdown {
        right: 10px;
        min-width: 160px;
    }
    
    .report-options .radio-option {
        padding: var(--space-sm);
    }
    
    .block-warning {
        padding: var(--space-md);
        flex-direction: column;
        text-align: center;
    }
    
    .block-warning i {
        margin-top: 0;
        margin-bottom: var(--space-sm);
    }
    
    .modal-overlay {
        padding: var(--space-sm);
    }
    
    .success-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .success-icon {
        font-size: 3rem;
    }
}

/* ===== 삭제 버튼 스타일 ===== */

/* 채팅방 삭제 버튼 */
.room-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--space-sm);
}

.chat-room-item {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-room-item:hover {
    background-color: var(--gray-50);
}

/* 요청 액션 버튼들 재정렬 */
.request-actions {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
}

/* 삭제 버튼 공통 스타일 */
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: var(--error-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
    position: relative;
    overflow: hidden;
}

.btn-delete:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

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

.btn-delete:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.btn-delete i {
    font-size: 18px;
}

/* 삭제 버튼 호버 효과 */
.btn-delete::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn-delete:hover::before {
    width: 100%;
    height: 100%;
}

/* 보낸 요청 페이지 액션 영역 조정 */
.sent-requests-page .request-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.sent-requests-page .request-actions {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .btn-delete {
        width: 32px;
        height: 32px;
    }
    
    .btn-delete i {
        font-size: 16px;
    }
    
    .request-actions {
        gap: var(--space-xs);
    }
    
    .room-actions {
        margin-left: var(--space-xs);
    }
}