/* ====================================================================
   App Dashboard - 다크 테마 스타일시트
   ==================================================================== */

/* ── 색상 변수 ── */
:root {
  --bg-primary: #1a1a2e;
  --bg-sidebar: #16213e;
  --bg-card: #0f3460;
  --bg-card-hover: #1a4a7a;
  --bg-input: #1e2a4a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --accent: #e94560;
  --accent-blue: #4a9eff;
  --accent-green: #4caf50;
  --accent-yellow: #ffc107;
  --accent-orange: #ff9800;
  --border: #2a2a4a;
  --shadow: rgba(0, 0, 0, 0.3);
  --sidebar-width: 240px;
  --header-height: 56px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

/* ── Reset / Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── App Container ── */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ====================================================================
   사이드바
   ==================================================================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  transition: transform var(--transition), width var(--transition);
  z-index: 100;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  background-color: rgba(74, 158, 255, 0.1);
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.nav-item.logout {
  color: var(--text-muted);
}

.nav-item.logout:hover {
  color: var(--accent);
}

/* ====================================================================
   메인 콘텐츠
   ==================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── 상단 헤더 ── */
.top-header {
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.app-selector,
.period-selector {
  position: relative;
}

.app-selector select,
.period-selector select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.app-selector select:hover,
.period-selector select:hover {
  border-color: var(--accent-blue);
}

.app-selector select:focus,
.period-selector select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* ── 페이지 콘텐츠 ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ====================================================================
   카드 (Card)
   ==================================================================== */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 4px 16px var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ====================================================================
   Metric Grid (KPI 카드)
   ==================================================================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.metric-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
}

.metric-change.positive {
  color: var(--accent-green);
}

.metric-change.negative {
  color: var(--accent);
}

.metric-change.neutral {
  color: var(--text-muted);
}

.metric-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ====================================================================
   차트 컨테이너
   ==================================================================== */
.chart-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.chart-container .chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-wrapper {
  width: 100%;
  min-height: 300px;
}

/* 2열 차트 그리드 */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* ====================================================================
   데이터 테이블
   ==================================================================== */
.table-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.table-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition);
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.08);
}

.data-table tbody tr:nth-child(even):hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* 테이블 셀 정렬 */
.data-table .text-right {
  text-align: right;
}

.data-table .text-center {
  text-align: center;
}

.data-table .text-mono {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
}

/* ====================================================================
   필터 바
   ==================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.filter-bar label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-bar select,
.filter-bar input {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.filter-bar select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ====================================================================
   배지 (Badge)
   ==================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.15);
  color: var(--accent-green);
}

.badge-warning {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--accent-yellow);
}

.badge-danger {
  background-color: rgba(233, 69, 96, 0.15);
  color: var(--accent);
}

.badge-info {
  background-color: rgba(74, 158, 255, 0.15);
  color: var(--accent-blue);
}

.badge-neutral {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ====================================================================
   댓글 스레드 (문의 관리용)
   ==================================================================== */
.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
}

.comment-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  max-width: 80%;
}

.comment-user {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.comment-admin {
  background-color: rgba(74, 158, 255, 0.12);
  border: 1px solid rgba(74, 158, 255, 0.25);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.comment-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.comment-form textarea {
  flex: 1;
  resize: vertical;
  min-height: 60px;
  padding: 10px 12px;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.comment-form textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* ====================================================================
   페이지네이션 (Pagination)
   ==================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.pagination a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
}

.pagination .active {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.pagination .disabled {
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.5;
}

/* ====================================================================
   빈 상태 (Empty State)
   ==================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 300px;
}

/* ====================================================================
   로딩 (Loading)
   ==================================================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ====================================================================
   폼 요소 (Form Elements)
   ==================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='number'],
input[type='search'],
input[type='date'],
textarea,
select {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

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

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #3a88e5;
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.btn-danger {
  background-color: var(--accent);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background-color: #d63c54;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ====================================================================
   로그인 페이지
   ==================================================================== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-container {
  width: 100%;
  max-width: 380px;
  padding: 20px;
}

.login-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form input[type='password'] {
  padding: 10px 14px;
  font-size: 14px;
}

.btn-login {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
}

.login-error {
  background-color: rgba(233, 69, 96, 0.12);
  color: var(--accent);
  border: 1px solid rgba(233, 69, 96, 0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

/* ====================================================================
   섹션 제목
   ==================================================================== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

/* ====================================================================
   유틸리티
   ==================================================================== */
.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 12px;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====================================================================
   퍼널 차트 (수평 바)
   ==================================================================== */
.funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.funnel-label {
  min-width: 120px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

.funnel-bar-wrap {
  flex: 1;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), #3a88e5);
  border-radius: var(--radius-sm);
  transition: width 0.6s ease;
  min-width: 2px;
}

.funnel-value {
  min-width: 80px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.funnel-rate {
  font-size: 11px;
  color: var(--text-muted);
}

/* ====================================================================
   상세 패널 (Expandable Row)
   ==================================================================== */
.detail-panel {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border);
}

.detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.detail-label {
  color: var(--text-muted);
  min-width: 100px;
}

.detail-value {
  color: var(--text-primary);
  word-break: break-all;
}

/* ====================================================================
   ApexCharts 다크 테마 보정
   ==================================================================== */
.apexcharts-tooltip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 16px var(--shadow) !important;
}

.apexcharts-tooltip-title {
  background: rgba(0, 0, 0, 0.2) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
}

.apexcharts-xaxistooltip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.apexcharts-yaxistooltip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.apexcharts-legend-text {
  color: var(--text-secondary) !important;
}

/* ====================================================================
   반응형 (Responsive)
   ==================================================================== */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 200;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  /* 오버레이 배경 */
  body.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    cursor: pointer;
  }

  .sidebar-toggle {
    display: block;
  }

  .page-content {
    padding: 16px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value {
    font-size: 22px;
  }

  .top-header {
    padding: 0 12px;
    gap: 8px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }

  .comment-item {
    max-width: 95%;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 24px;
  }

  .login-card {
    padding: 28px 20px;
  }

  /* 테이블 수평 스크롤 */
  .table-container {
    overflow-x: auto;
  }

  .data-table {
    min-width: 600px;
  }
}

/* ====================================================================
   스크롤바 커스텀
   ==================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ====================================================================
   인쇄 스타일
   ==================================================================== */
@media print {
  .sidebar,
  .top-header,
  .sidebar-toggle {
    display: none !important;
  }

  .main-content {
    margin: 0;
  }

  .page-content {
    padding: 0;
  }

  .card,
  .metric-card,
  .chart-container,
  .table-container {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
