/* ===========================================================
   안심노트 - 입주민 인증 기반 내부 분쟁 기록 웹앱
   공통 스타일 (Tailwind 유틸리티를 보완하는 커스텀 스타일)
   =========================================================== */

:root {
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
}

* {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* 스크롤바 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d8d2f7; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 공통 입력 필드 */
.input-field {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-field:focus {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
textarea.input-field { resize: vertical; min-height: 90px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.35rem;
}
.form-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.3rem;
}

/* 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #ede9fe; color: #6d28d9; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-hidden { background: #e5e7eb; color: #4b5563; }

/* 내비게이션 */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--violet-50); color: var(--violet-700); }
.nav-link-active { background: var(--violet-100); color: var(--violet-700); font-weight: 700; }

/* 카드 */
.record-card {
  transition: box-shadow .15s, transform .15s;
}
.record-card:hover {
  box-shadow: 0 8px 24px -8px rgba(109,40,217,0.18);
  transform: translateY(-2px);
}

/* 통계 카드 */
.stat-card {
  background: #fff;
  border: 1px solid #f1eefe;
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
}

/* 뱃지 카운터(관리자 nav) */
.count-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.3rem;
}

/* 필터바 */
.filter-bar {
  background: #fff;
  border: 1px solid #f1eefe;
  border-radius: 0.9rem;
  padding: 1rem;
}

/* 유틸: 라인 클램프 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
