body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

/* iOS Safari date input 오버플로우 및 높이 수정 */
input[type="date"],
input[type="datetime-local"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 38px !important;
    height: auto !important;
    box-sizing: border-box !important;
    background-color: white !important;
    line-height: 1.5 !important;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    padding: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: 0;
}

/* 스크롤바 숨기기 (모바일 가로 스크롤 영역용) */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE, Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari */
}

.bg-amber-600 {
  background-color: #d97706 !important;
}

.bg-amber-600:hover {
  background-color: #b45309 !important;
}

.bg-emerald-600 {
  background-color: #059669 !important;
}

.bg-emerald-600:hover {
  background-color: #047857 !important;
}

/* button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 새로운 로딩 애니메이션 스타일 */
.bouncing-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }
  
  @keyframes bouncing-loader {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  .bouncing-dot {
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    animation: bouncing-loader 0.5s ease infinite alternate;
    margin: 0 3px;
  }
  
  .bouncing-dot:nth-child(2) {
    animation-delay: 100ms;
  }
  
  .bouncing-dot:nth-child(3) {
    animation-delay: 200ms;
  }
  
  
  /* 로딩 메시지 스타일 */
  #loading-message {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }
  
  .loader-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 순위체크 빨간색 
  .high-rank {
    background-color: red;
} */

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #555;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #333;
}

/* Reset some default styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* 체크박스 스타일 */
.form-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.form-check-input {
  margin-right: 5px;
}

.drag-handle {
  cursor: move; /* 커서 스타일 변경 */
  color: #666; /* 아이콘 색상 */
  padding: 5px; /* 패딩 */
}

.drag-handle:hover {
  color: #333; /* 마우스 오버 시 색상 변경 */
}

/* Updated Navigation Bar Style */
/* Navigation Bar Style */
.navbar {
  padding: 0.5rem 1rem;
  background-color: #4A4E69;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Removed fixed positioning */
}


/* Updated Navigation Link Style */
.nav-link {
  color: #F2E9E4; /* Light color for contrast */
  transition: color 0.2s; /* Smooth color transition on hover */
}

.nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
  color: #C9ADA7; /* Softer color on hover */
}

/* Welcome Message Style */
.navbar-text {
  color: #CAD2C5; /* Updated color for better visibility against the dark navbar */
  font-weight: bold;
  margin-right: 10px;
}

/* Logout Link Icon Style */
.nav-item .fa-sign-out-alt {
  margin-left: 5px;
}

@media (max-width: 992px) {
  .navbar-toggler {
    display: block; /* Ensure visibility on smaller screens */
  }
  .nav-link {
    padding: 0.5rem 1rem; /* Adjusted for better spacing */
  }
}

@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
      max-width: 1340px !important;
  }
}

.navbar-brand img {
  margin-right: 2px; /* 이미지 오른쪽에 2px 간격을 줌 */
}

/* 카피라이트 섹션 스타일 */
footer {
  padding: 10px 0;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid #eaeaea; /* 상단 경계선 */
  bottom: 0;
  width: 100%;
}

html, body {
  height: 100%; /* 전체 높이를 확보 */
  margin: 0;
}

body {
  display: flex;
  flex-direction: column; /* 자식 요소들을 세로 방향으로 정렬 */
}

.content {
  flex: 1; /* 콘텐츠 영역이 유연하게 늘어나서 남은 공간을 모두 차지하도록 함 */
}


.icon-button {
  color: #007bff; /* Bootstrap primary color */
  font-size: 1.5rem; /* Adjust the size of the icon */
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.375rem 0.75rem; /* Same padding as buttons for consistency */
}

.icon-button:hover,
.icon-button:focus {
  color: #0056b3; /* Darker shade for interaction */
}


.modal-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

/* 모달 내부 알림 메시지 스타일 */
.modal-alert {
  position: relative;
  margin-top: -20px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #f8f9fa;
  color: #155724; /* 알림 메시지의 텍스트 색상 */
  padding: 10px;
  text-align: center;
}

.modal-content {
  border-radius: 0.5rem; /* 모달 모서리 둥글게 */
  box-shadow: 0 5px 15px rgba(0,0,0,.5); /* 모달에 그림자 추가 */
}

.modal-header, .modal-body {
  padding: 20px; /* 헤더와 바디에 패딩 추가 */
}

#recent-reports {
  margin-top: 20px; /* '최근 보고 자료' 섹션 위에 간격 추가 */
}

.btn:hover {
  opacity: 0.8; /* 버튼에 마우스를 올렸을 때 투명도 변경 */
}

.table thead th {
  background-color: #f8f9fa; /* 테이블 헤더 배경색 */
  border-bottom: 2px solid #dee2e6; /* 테이블 헤더 하단 경계선 */
}

.table tbody tr:hover {
  background-color: #f2f2f2; /* 테이블 행에 마우스를 올렸을 때 배경색 변경 */
}

@media (min-width: 768px) {
  .sidebar .offcanvas-lg {
    position: -webkit-sticky;
    position: sticky;
    top: 48px;
  }
  .navbar-search {
    display: block;
  }
}

.sidebar .nav-link {
  font-size: .875rem;
  font-weight: 500;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar-heading {
  font-size: .75rem;
}

@media (max-width: 600px) {
  /* 테이블 내 특정 클래스 요소만 숨김 (Tailwind의 .group 유틸리티와 충돌 방지) */
  table .url,
  table .registration-date,
  table .drag-handle {
      display: none !important;
  }
}
.fade-out {
  opacity: 0;
  transition: opacity 0.5s;
}

/* ===== Tailwind CSS Fallbacks (2026-01-14) ===== */
/* main.min.css에서 누락된 클래스들 */

/* Slate background colors */
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-slate-600 { background-color: #475569 !important; }

/* Text colors */
.text-white { color: #ffffff !important; }
.text-slate-300 { color: #cbd5e1; }

/* Border colors */
.border-slate-600 { border-color: #475569 !important; }
.border-slate-700 { border-color: #334155 !important; }

/* Hover states */
.hover\:bg-slate-800:hover { background-color: #1e293b !important; }
.hover\:text-slate-300:hover { color: #cbd5e1 !important; }

/* Box shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Border radius */
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Responsive display (sm: 640px+) - 2026-01-23 */
@media (min-width: 640px) {
    .sm\:inline-flex { display: inline-flex !important; }
    .sm\:inline-block { display: inline-block !important; }
}

/* Responsive display (md: 768px+) - 2026-01-26 */
@media (min-width: 768px) {
    .md\:grid { display: grid !important; }
    .md\:block { display: block !important; }
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* ===== Semantic Color Fallbacks (2026-01-18) ===== */
/* Teal (상위노출/SEO) */
.bg-teal-100 { background-color: #ccfbf1 !important; }
.bg-teal-600 { background-color: #0d9488 !important; }
.text-teal-600 { color: #0d9488 !important; }

/* Violet (네트워크) */
.bg-violet-100 { background-color: #ede9fe !important; }
.bg-violet-600 { background-color: #7c3aed !important; }
.text-violet-600 { color: #7c3aed !important; }

/* Amber (브랜드블로그/주의) */
.bg-amber-100 { background-color: #fef3c7 !important; }
.bg-amber-500 { background-color: #f59e0b !important; }
.bg-amber-600 { background-color: #d97706 !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }

/* Red (미노출/긴급) */
.bg-red-100 { background-color: #fee2e2 !important; }
.bg-red-500 { background-color: #ef4444 !important; }
.text-red-500 { color: #ef4444 !important; }
.text-red-600 { color: #dc2626 !important; }

/* Emerald (결제/성공) */
.bg-emerald-100 { background-color: #d1fae5 !important; }
.text-emerald-600 { color: #059669 !important; }

/* Blue (공지/액션) */
.bg-blue-100 { background-color: #dbeafe !important; }
.text-blue-600 { color: #2563eb !important; }

/* ===== Font Size Fallbacks (2026-01-18) ===== */
/* Tailwind 임의 값 클래스 폴백 */
.text-\[8px\] { font-size: 8px !important; line-height: 1.2; }
.text-\[9px\] { font-size: 9px !important; line-height: 1.3; }
.text-\[10px\] { font-size: 10px !important; line-height: 1.4; }
.text-\[11px\] { font-size: 11px !important; line-height: 1.4; }
/* ===== Keyword Analysis Page Styles (2026-01-19) ===== */
/* 탭 버튼 스타일 */
.keyword-tab {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.keyword-tab:hover {
    color: #334155;
    background-color: #f8fafc;
}
.keyword-tab.active {
    color: #1e293b;
    border-bottom: 2px solid #1e293b;
    margin-bottom: -1px;
}

/* 검색 입력 필드 패딩 */
.keyword-search-input {
    padding-left: 44px;
    padding-right: 16px;
}
.keyword-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ===== Toggle Switch Fallbacks (2026-01-19) ===== */
/* peer-checked 상태 - 토글 배경색 */
input.peer:checked + div {
    background-color: #3b82f6 !important; /* 기본: blue-500 */
}
input.peer:checked + div.peer-checked\:bg-emerald-500,
input.peer:checked + .peer-checked\:bg-emerald-500 {
    background-color: #10b981 !important;
}
input.peer:checked + div.peer-checked\:bg-red-500,
input.peer:checked + .peer-checked\:bg-red-500 {
    background-color: #ef4444 !important;
}
input.peer:checked + div.peer-checked\:bg-amber-500,
input.peer:checked + .peer-checked\:bg-amber-500 {
    background-color: #f59e0b !important;
}

/* peer-checked 상태 - 토글 노브 이동 */
input.peer:checked + div::after {
    transform: translateX(100%);
    border-color: white;
}

/* 더 안정적인 토글 선택자 (클래스명 포함 확인) */
input[type="checkbox"].peer:checked + div[class*="peer-checked:bg-emerald"] {
    background-color: #10b981 !important;
}
input[type="checkbox"].peer:checked + div[class*="peer-checked:bg-red"] {
    background-color: #ef4444 !important;
}
input[type="checkbox"].peer:checked + div[class*="peer-checked:bg-amber"] {
    background-color: #f59e0b !important;
}
input[type="checkbox"].peer:checked + div[class*="peer-checked:bg-blue"] {
    background-color: #3b82f6 !important;
}

/* ===== Mobile Responsive Utilities (2026-01-20) ===== */
/*
 * 주의: Tailwind CDN이 이미 이 클래스들을 정의하므로
 * !important로 덮어쓰면 안됨 (hidden md:flex 같은 조합이 깨짐)
 * 아래 정의는 Tailwind CDN 누락 시 폴백용으로만 사용
 */

/* lg:grid-cols-4 - 폴백 */
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* sm:grid-cols-2 - 폴백 */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* grid-cols-5 - 폴백 (2026-01-25) */
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* sm:grid 관련 폴백 (2026-01-25) */
@media (min-width: 640px) {
    .sm\:grid { display: grid !important; }
    .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* lg:grid-cols-5, lg:grid-cols-6 - 폴백 (2026-01-25) */
@media (min-width: 1024px) {
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ===== Zinc Color Fallbacks (2026-01-20) ===== */
/* 로그인 페이지 등에서 사용되는 zinc 색상 */

/* Text colors */
.text-zinc-900 { color: #18181b !important; }
.text-zinc-800 { color: #27272a !important; }
.text-zinc-700 { color: #3f3f46 !important; }
.text-zinc-600 { color: #52525b !important; }
.text-zinc-500 { color: #71717a !important; }
.text-zinc-400 { color: #a1a1aa !important; }
.text-zinc-300 { color: #d4d4d8 !important; }

/* Background colors */
.bg-zinc-900 { background-color: #18181b !important; }
.bg-zinc-800 { background-color: #27272a !important; }
.bg-zinc-700 { background-color: #3f3f46 !important; }
.bg-zinc-100 { background-color: #f4f4f5 !important; }
.bg-zinc-50 { background-color: #fafafa !important; }

/* Border colors */
.border-zinc-200 { border-color: #e4e4e7 !important; }
.border-zinc-100 { border-color: #f4f4f5 !important; }
.border-zinc-300 { border-color: #d4d4d8 !important; }

/* Placeholder colors */
.placeholder-zinc-400::placeholder { color: #a1a1aa !important; }

/* ===== iOS Safari 호환 체크박스/라디오 버튼 (2026-01-20) ===== */
/*
 * 전략: input을 숨기고 JavaScript로 is-checked 클래스 토글
 * !important 없이 모든 iOS 버전에서 작동
 */

/* 옵션 카드 스타일 (라디오/체크박스용) */
.form-option-card {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: #fff;
    position: relative; /* 내부 input이 카드 범위 안에 위치하도록 - 스크롤 점프 방지 */
}

.form-option-card:hover {
    background-color: #f8fafc;
}

/* input 숨기기 (접근성 유지, 스크롤 점프 방지) */
.form-option-card input[type="checkbox"],
.form-option-card input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* 체크 상태 - 기본 (slate) */
.form-option-card.is-checked {
    background-color: #f1f5f9;
    border-color: #64748b;
    box-shadow: inset 0 0 0 2px #64748b;
}

/* 체크 상태 - 색상별 */
.form-option-card.is-checked[data-color="pink"] {
    background-color: #fce7f3;
    border-color: #ec4899;
    box-shadow: inset 0 0 0 2px #ec4899;
}

.form-option-card.is-checked[data-color="blue"] {
    background-color: #dbeafe;
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.form-option-card.is-checked[data-color="emerald"] {
    background-color: #d1fae5;
    border-color: #10b981;
    box-shadow: inset 0 0 0 2px #10b981;
}

.form-option-card.is-checked[data-color="purple"] {
    background-color: #f3e8ff;
    border-color: #a855f7;
    box-shadow: inset 0 0 0 2px #a855f7;
}

.form-option-card.is-checked[data-color="orange"] {
    background-color: #ffedd5;
    border-color: #f97316;
    box-shadow: inset 0 0 0 2px #f97316;
}

/* 인라인 체크박스/라디오 (작은 크기) */
.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* 커스텀 체크박스 박스 */
.form-check-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.form-check-inline.is-checked .form-check-box {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-inline.is-checked .form-check-box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* 커스텀 라디오 박스 */
.form-radio-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.form-check-inline.is-checked .form-radio-box {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-inline.is-checked .form-radio-box::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

/* input 숨기기 (인라인용) */
.form-check-inline input[type="checkbox"],
.form-check-inline input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 자동 변환된 체크박스/라디오 (JavaScript에서 생성) ===== */
/* 일반 체크박스 - 자동 생성 */
.form-auto-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.form-auto-checkbox.is-checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-auto-checkbox.is-checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 일반 라디오 - 자동 생성 */
.form-auto-radio {
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.form-auto-radio.is-checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-auto-radio.is-checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

/* 모바일에서 약간 더 크게 (터치 영역) */
@media (max-width: 639px) {
    .form-auto-checkbox,
    .form-auto-radio {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    .form-auto-checkbox.is-checked::after {
        left: 5px;
        top: 2px;
    }
    .form-auto-radio.is-checked::after {
        left: 5px;
        top: 5px;
    }
}

/* ================================================
   SweetAlert2 커스텀 스타일
   - 프로젝트 디자인 시스템에 맞춤 (slate 컬러, rounded-xl 등)
   - alert(), confirm() 대신 SweetAlert2 사용
   ================================================ */
.swal2-popup {
    font-family: inherit;
    border-radius: 0.75rem;
}

.swal2-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.swal2-html-container {
    font-size: 0.875rem;
    color: #475569;
}

/* 확인 버튼 - Primary (slate-900) */
.swal2-confirm {
    background-color: #0f172a;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: background-color 0.15s ease;
}

.swal2-confirm:hover,
.swal2-confirm:focus {
    background-color: #1e293b;
}

/* 취소 버튼 - Secondary (white with border) */
.swal2-cancel {
    background-color: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: background-color 0.15s ease;
}

.swal2-cancel:hover,
.swal2-cancel:focus {
    background-color: #f8fafc;
}

/* 거부/삭제 버튼 - Danger (red) */
.swal2-deny {
    background-color: #ef4444;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

.swal2-deny:hover,
.swal2-deny:focus {
    background-color: #dc2626;
}

/* 아이콘 크기 - 기본값 유지 (찌그러짐 방지) */
.swal2-icon {
    margin: 1.5rem auto 1rem;
    /* width/height는 SweetAlert2 기본값(5em) 사용 - 수정 시 아이콘 깨짐 발생 */
}

/* 버튼 영역 간격 */
.swal2-actions {
    gap: 0.75rem;
}

/* 입력 필드 스타일 */
.swal2-input,
.swal2-textarea,
.swal2-select {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* ================================================
   Modal Overlay Fallbacks (Tailwind CSS CDN에서 누락될 수 있음)
   순수 검정색 배경 - 네이비(slate-900) 대신 검정(black) 사용
   ================================================ */
.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.bg-black\/60 {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.bg-black\/75 {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

/* ================================================
   Report Page UI Components (2026-01-25)
   - 스켈레톤 로딩, 툴팁, 프로그레스 바 등
   ================================================ */

/* ===== 스켈레톤 로딩 애니메이션 ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 0.75em;
    width: 60%;
}

.skeleton-title {
    height: 1.5em;
    width: 40%;
    margin-bottom: 0.75em;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    border-radius: 12px;
}

.skeleton-row {
    height: 48px;
    margin-bottom: 8px;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* ===== CSS 기반 툴팁 ===== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #1e293b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border: 4px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 툴팁 위치 변형 - 아래쪽 */
.tooltip-bottom::after {
    bottom: auto;
    top: 100%;
    margin-top: 8px;
    margin-bottom: 0;
}

.tooltip-bottom::before {
    bottom: auto;
    top: 100%;
    margin-top: 0;
    margin-bottom: 0;
    border-top-color: transparent;
    border-bottom-color: #1e293b;
}

/* 툴팁 위치 변형 - 왼쪽 */
.tooltip-left::after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 8px;
    margin-bottom: 0;
}

.tooltip-left::before {
    bottom: auto;
    top: 50%;
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    margin-right: 4px;
    margin-bottom: 0;
    border-top-color: transparent;
    border-left-color: #1e293b;
}

/* ===== 순위 변동 표시 ===== */
.rank-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 500;
}

.rank-change-up {
    color: #10b981;
}

.rank-change-up::before {
    content: '↑';
}

.rank-change-down {
    color: #ef4444;
}

.rank-change-down::before {
    content: '↓';
}

.rank-change-same {
    color: #94a3b8;
}

.rank-change-same::before {
    content: '−';
}

/* ===== 통계 증감 표시 ===== */
.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-change-positive {
    color: #059669;
    background-color: #d1fae5;
}

.stat-change-negative {
    color: #dc2626;
    background-color: #fee2e2;
}

.stat-change-neutral {
    color: #64748b;
    background-color: #f1f5f9;
}

/* ===== 새로고침 버튼 ===== */
.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.refresh-btn.refreshing i {
    animation: spin 1s linear infinite;
}

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

/* ===== 라이트박스 개선 ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-zoom {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.lightbox-zoom button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-zoom button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== 빈 상태 일러스트 ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 50%;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #4f46e5;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    font-size: 0.875rem;
    color: #64748b;
    max-width: 320px;
    margin: 0 auto;
}

/* ===== 기간 필터 토글 버튼 그룹 ===== */
.period-filter {
    display: inline-flex;
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.period-filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-filter-btn:hover {
    color: #334155;
}

.period-filter-btn.active {
    background-color: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== 목표 달성률 프로그레스 바 (인라인) ===== */
.goal-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.goal-progress-bar {
    flex: 1;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.goal-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

/* ===== 스크린샷 썸네일 호버 미리보기 ===== */
.screenshot-preview-trigger {
    position: relative;
}

.screenshot-preview {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    width: 200px;
    padding: 4px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.screenshot-preview-trigger:hover .screenshot-preview {
    opacity: 1;
    visibility: visible;
}

.screenshot-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* ===== 마지막 업데이트 표시 ===== */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.last-updated i {
    font-size: 10px;
}

/* ===== 펼침/접기 버튼 ===== */
.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #3b82f6;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expand-toggle:hover {
    background-color: #dbeafe;
}

.expand-toggle i {
    transition: transform 0.2s ease;
}

.expand-toggle.expanded i {
    transform: rotate(180deg);
}

/* ===== Top Exposure Page Improvements (2026-01-26) ===== */

/* Gradient backgrounds - Direct styles (CSS variable approach doesn't work without Tailwind build) */

/* Selected group tab gradient (dark slate) */
.bg-gradient-to-r.from-slate-800.to-slate-700 {
    background-image: linear-gradient(to right, #1e293b, #334155) !important;
    background-color: transparent !important;
}

/* Section header gradient (teal) */
.bg-gradient-to-r.from-teal-50.via-teal-50\/50.to-transparent {
    background-image: linear-gradient(to right, #f0fdfa, rgba(240, 253, 250, 0.5), transparent) !important;
    background-color: transparent !important;
}

/* Fallback for individual gradient classes */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops, #f0fdfa, transparent)); }
.from-slate-800 { --tw-gradient-from: #1e293b; }
.to-slate-700 { --tw-gradient-to: #334155; }
.from-teal-50 { --tw-gradient-from: #f0fdfa; }
.to-transparent { --tw-gradient-to: transparent; }

/* Additional teal colors */
.bg-teal-50 { background-color: #f0fdfa !important; }
.border-teal-100 { border-color: #ccfbf1 !important; }

/* Additional blue colors */
.bg-blue-50 { background-color: #eff6ff !important; }
.bg-blue-50\/50 { background-color: rgba(239, 246, 255, 0.5) !important; }
.text-blue-700 { color: #1d4ed8 !important; }

/* Slate with opacity */
.bg-slate-50\/30 { background-color: rgba(248, 250, 252, 0.3) !important; }

/* Green text */
.text-green-400 { color: #4ade80 !important; }

/* Scale transforms */
.scale-\[1\.02\] { transform: scale(1.02); }
.scale-\[1\.01\] { transform: scale(1.01); }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }

/* Shadow with color */
.shadow-slate-300\/50 {
    --tw-shadow-color: rgba(203, 213, 225, 0.5);
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-shadow);
}

/* Hover shadow */
.hover\:shadow-sm:hover {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Transition all */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Duration 500ms */
.duration-500 {
    transition-duration: 500ms;
}

/* Duration 200ms */
.duration-200 {
    transition-duration: 200ms;
}

/* Additional hover states */
.hover\:bg-slate-100:hover { background-color: #f1f5f9 !important; }
.hover\:bg-blue-50:hover { background-color: #eff6ff !important; }
.hover\:bg-blue-50\/50:hover { background-color: rgba(239, 246, 255, 0.5) !important; }
.hover\:border-slate-300:hover { border-color: #cbd5e1 !important; }

/* Transition colors */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Shadow sm */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Margin left auto */
.ml-auto { margin-left: auto; }

/* Gap utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

/* Padding utilities */
.p-1 { padding: 0.25rem; }

/* Additional slate colors */
.bg-slate-50 { background-color: #f8fafc !important; }
.bg-slate-300 { background-color: #cbd5e1 !important; }

/* Group hover state */
.group:hover .group-hover\:bg-slate-400 { background-color: #94a3b8 !important; }

/* Margin utilities */
.mr-2\.5 { margin-right: 0.625rem; }

/* Padding utilities */
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
/* .px-4, .px-3: Removed - already in main.min.css (Tailwind). Duplicating here breaks responsive overrides like sm:px-6, lg:px-8 */

/* Background slate-100 (base) */
.bg-slate-100 { background-color: #f1f5f9 !important; }

/* Border radius */
.rounded-md { border-radius: 0.375rem; }

/* Text colors - green */
.text-green-600 { color: #16a34a !important; }

/* Text colors - slate */
.text-slate-900 { color: #0f172a !important; }
.text-slate-600 { color: #475569 !important; }
.hover\:text-slate-900:hover { color: #0f172a !important; }

/* Background white */
.bg-white { background-color: #ffffff !important; }

/* ===== Screenshot Lightbox - Simple tap-to-close (2026-02-19) ===== */
.screenshot-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.screenshot-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.screenshot-lightbox-image {
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.screenshot-lightbox-overlay.active .screenshot-lightbox-image {
    transform: scale(1);
}

@media (max-width: 640px) {
    .screenshot-lightbox-overlay {
        padding: 0.5rem;
    }

    .screenshot-lightbox-image {
        max-width: 98%;
        max-height: 92vh;
        border-radius: 6px;
    }
}
