/* 지게차 일일 안전점검 시스템 커스텀 스타일시트 */
@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary-amber: #f59e0b;
  --primary-amber-dark: #d97706;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0b0f19;
  color: #f1f5f9;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 글래스 및 카드 스타일 */
.glass-card {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* 입력 필드 고대비 & 터치 최적화 */
.input-field {
  background: #1e293b;
  border: 1.5px solid #334155;
  color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  background: #0f172a;
}

/* 점검 항목 카드 */
.item-card {
  background: #182234;
  border: 1.5px solid #283548;
  border-radius: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card.has-photo {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.04);
}

.item-card.status-bad {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(244, 63, 94, 0.05);
}

/* 버튼 탭 액티브 상태 */
.tab-btn.active {
  background-color: #f59e0b !important;
  color: #0f172a !important;
}

/* 서명 캔버스 */
#signatureCanvas {
  touch-action: none;
}

/* 인쇄 및 스크린샷 렌더링용 영역 */
#printableSheet {
  box-sizing: border-box;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* 카메라 파일 인풋 숨김 */
.hidden-camera-input {
  display: none;
}

/* 워터마크 미리보기 오버레이 */
.photo-preview-box {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4 / 3;
  background: #090d16;
  border: 1px solid #334155;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 부드러운 스크롤바 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* 애니메이션 */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
