/**
 * ==============================================================================
 * 파일명 : peach_app.css
 * 작성일 : 2026-09-23
 * 작성자 : 김진솔 (Antigravity)
 * 설명   : 복숭아 자조금 농업인 모바일 웹/앱 전용 스타일시트
 *  - 고령 농업인을 위한 고대비, 큰 텍스트, 넉넉한 터치 영역(최소 52px)
 *  - 복숭아 테마 컬러 (Peach Coral / Warm Orange / Clean White)
 * ==============================================================================
 */

@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --peach-primary: #FF6F61;
  --peach-primary-hover: #E85A4F;
  --peach-gradient: linear-gradient(135deg, #FF6F61 0%, #FF9A76 100%);
  --peach-light: #FFF0EB;
  --peach-bg: #F7F8FA;
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --text-light-gray: #94A3B8;
  --border-color: #E2E8F0;
  --card-bg: #FFFFFF;
  --badge-paid-bg: #ECFDF5;
  --badge-paid-text: #059669;
  --badge-unpaid-bg: #FEF2F2;
  --badge-unpaid-text: #DC2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(255, 111, 97, 0.12);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.04);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #ECEFF1;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* 모바일 래퍼 (최대 480px 고정 모바일 뷰) */
.mobile-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--peach-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

/* 상단 앱 헤더 */
.app-header {
  height: 60px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header .header-left {
  min-width: 65px;
  display: flex;
  align-items: center;
}

.app-header .header-right {
  min-width: 65px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.app-header .header-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  flex: 1;
}

.app-header .btn-back {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 메인 본문 컨텐츠 영역 */
.content-body {
  flex: 1;
  padding: 24px 20px 90px; /* 하단 탭바 여백 */
  overflow-y: auto;
}

/* 상단 타이틀 & 서브타이틀 */
.page-header-box {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.4;
}

/* 기획서 APP-01 로고 & 시작 화면 */
.app-hero-box {
  text-align: center;
  padding: 30px 10px 20px;
}

.app-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: var(--peach-light);
  border-radius: 24px;
  font-size: 38px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.app-brand-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--peach-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.app-brand-sub {
  font-size: 16px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 폼 그룹 및 인풋 (시원한 크기 56px 높이) */
.form-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--peach-primary);
  margin-left: 2px;
}

.input-box {
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 18px;
  color: var(--text-dark);
  background-color: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-box:focus {
  border-color: var(--peach-primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.15);
}

.input-box::placeholder {
  color: var(--text-light-gray);
  font-size: 16px;
}

.input-box:disabled, .input-box[readonly] {
  background-color: #F1F5F9;
  color: var(--text-gray);
  cursor: not-allowed;
}

/* 버튼 스타일 (터치 최적화) */
.btn-primary {
  width: 100%;
  height: 56px;
  background: var(--peach-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.1s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-secondary {
  width: 100%;
  height: 54px;
  background-color: #F1F5F9;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* 인증번호 입력 및 타이머 박스 */
.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-timer {
  position: absolute;
  right: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #E11D48;
}

.auth-desc-box {
  background: var(--peach-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #9A3412;
  line-height: 1.5;
}

.auth-desc-box strong {
  font-size: 17px;
  color: #7C2D12;
}

/* 11페이지 (APP-09) 납부현황 전용 카드 스타일 */
.farmer-profile-card {
  background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(26, 32, 44, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.farmer-profile-info .badge-crop {
  display: inline-block;
  background: rgba(255, 111, 97, 0.25);
  color: #FFAAA0;
  border: 1px solid rgba(255, 111, 97, 0.5);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.farmer-profile-info .farmer-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.farmer-profile-info .farmer-tel {
  font-size: 15px;
  color: #A0AEC0;
}

.farmer-profile-action .btn-logout {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #E2E8F0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

/* 연도 선택 필터 */
.year-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.year-select-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.year-dropdown {
  height: 44px;
  border: 1.5px solid var(--border-color);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
}

/* 납부 상태 요약 대형 카드 */
.payment-summary-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border-top: 4px solid var(--peach-primary);
}

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

.payment-status-year {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray);
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge.paid {
  background-color: var(--badge-paid-bg);
  color: var(--badge-paid-text);
  border: 1px solid #A7F3D0;
}

.status-badge.unpaid {
  background-color: var(--badge-unpaid-bg);
  color: var(--badge-unpaid-text);
  border: 1px solid #FECACA;
}

.payment-amount-box {
  margin-bottom: 20px;
}

.payment-amount-label {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.payment-amount-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.payment-amount-unit {
  font-size: 22px;
  font-weight: 700;
  margin-left: 4px;
}

/* 납부 상세 내역 테이블 리스트 */
.payment-detail-list {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.detail-label {
  color: var(--text-gray);
  font-weight: 500;
}

.detail-val {
  color: var(--text-dark);
  font-weight: 700;
}

/* 11페이지 [납부확인서 발급] 액션 버튼 카드 */
.cert-action-box {
  margin-top: 10px;
  text-align: center;
}

.btn-cert-download {
  width: 100%;
  height: 56px;
  background-color: #FFFFFF;
  color: var(--peach-primary);
  border: 2px solid var(--peach-primary);
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cert-download:hover {
  background-color: var(--peach-light);
}

.cert-notice-text {
  font-size: 13px;
  color: var(--text-light-gray);
  margin-top: 10px;
}

/* 하단 4대 탭 네비게이션 (고정 바) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 68px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light-gray);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: color 0.15s;
}

.nav-item .nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.nav-item.active {
  color: var(--peach-primary);
}

.nav-item.active .nav-icon {
  color: var(--peach-primary);
}
