html {
  font-size: 14px;
}

/* ===== 접속상태 표시 (Presence) — 작은 원형 점 ===== */
.presence-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}
.presence-online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.18); }
.presence-away    { background: #eab308; }
.presence-offline { background: #cbd5e1; }

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* 전역 서체 — Pretendard (한국어) + Inter (영문/숫자) */
body, html {
  font-family: 'Pretendard Variable', Pretendard, Inter, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 가중치 표준 — 400(본문) / 500(강조) / 600(준굵게) / 700(굵게) */
strong, b, .fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

/* Bootstrap Icons — 단색·정제, 텍스트 색 상속 + 약간의 간격 */
.bi { vertical-align: -0.125em; color: inherit; }
.nav-link .bi, .dropdown-item .bi { margin-right: 4px; opacity: 0.7; }
.nav-link:hover .bi, .dropdown-item:hover .bi { opacity: 1; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* === 통일 알림 스타일 (옅은 파랑 + 굵은 둥근 보더) === */
.alert {
  border-radius: 10px;
  border-width: 1.5px;
  padding: 12px 16px;
}
.alert-success {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}
.alert-info {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}
.alert-warning {
  background-color: #fef9e7;
  border-color: #facc15;
  color: #854d0e;
}
.alert-danger {
  background-color: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}
.alert-light {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

/* 폼 입력 — 보더 강조 + 둥근 모서리 */
.form-control, .form-select {
  border-radius: 8px;
  border-color: #cbd5e1;
}
.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* 뱃지 글씨색 정책 — 기본 흰 글씨, 노란(warning) 뱃지만 진한 회색.
   흰 배경(light) 뱃지는 가독성을 위해 진한 회색 유지. (text-dark 유틸리티 무력화) */
.badge { color: #fff !important; }
.badge.bg-warning,
.badge.bg-light { color: #343a40 !important; }
