/* ============================================
   전역 스타일
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

#app-top {
	display: block;
	width: 100%;
	max-height: 148px;
	margin: 0 auto;
	position: fixed;
	z-index: 10;
}

/* ============================================
   헤더
============================================ */
.app-header {
    background: white;
    padding: 15px;
    /* text-align: center; */
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.church-logo {
    text-align: center;
	margin: 0 auto;
}

.church-logo img {
	height: 35px;
}

.header-icons {
    position: absolute;
    top: 20px;
    right: 15px;
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.icon-reset {
	width: 21px;
	height: 25px;
	border: none;
	background: url(./asset/icon_reset.png) no-repeat;
	background-size: 21px 25px;
	cursor: pointer;
}

.icon-login {
	width: 21px;
	height: 25px;
	border: none;
	background: url(./asset/icon_login.png) no-repeat;
	background-size: 21px 25px;
	cursor: pointer;
}

.card-logo {
	position: absolute; 
	left: 15px; 
	top: 15px;
}

.card-logo img {
	width: 12%;
}

/* ============================================
   하단 탭 네비게이션
============================================ */
.bottom-tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.tab-item {
    flex: 1;
    padding: 10px 10px;
    text-align: center;
    border: none;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-item.active {
    border-bottom: 3px solid #0068b7;
	padding: 10px 10px 7px;
}

.tab-item.active .tab-label {
    color: #0068b7;
    font-weight: bold;	
}

.tab-icon-member {
	display: block;
	margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_member.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-item.active .tab-icon-member {
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_member_on.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-icon-information {
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_information.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-item.active .tab-icon-information {
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_information_on.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-icon-franchise{
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_franchise.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-item.active .tab-icon-franchise {
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_franchise_on.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-icon-offering{
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_offering.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-item.active .tab-icon-offering {
	display: block;
    margin: 0 auto 5px;
	width: 27px;
	height: 25px;
	border: none;
	background: url(./asset/icon_offering_on.png) no-repeat;
	background-size: 27px 25px;
	cursor: pointer;
	text-align: center;
}

.tab-icon {
    font-size: 28px;
    color: #666;
    display: block;
   margin: 0 auto 5px;
}

.tab-item.active .tab-icon {
    color: #0068b7;
}

.tab-label {
    font-size: 13px;
    color: #666;
}

/* ============================================
   메인 컨텐츠
============================================ */
.main-content {
    padding: 135px 8px 8px;
    max-width: 640px;
    margin: 0 auto 0;
}

/* ============================================
   로그인 폼
============================================ */
.login-form {
    background: white;
    padding: 30px 20px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #f9f9f9;
}

.form-input::placeholder {
    color: #999;
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: #0068b7;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #1d4ed8;
}

/* ============================================
   푸터
============================================ */
.footer {
    background: #f0f0f0;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-top: 40px;
}

/* ============================================
   성도등록증 화면
============================================ */
.member-card-container {
    background: #e8e8e8;
    padding: 15px 8px 15px;
    margin-top: 20px;	
}

.profile-qr-section {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.profile-image {
    flex: 1;
	background: url(./asset/Photo.png) no-repeat;
	background-size: cover;
	background-position: center;
    /* background: #6b7280; */
    /* border-radius: 8px; */
    overflow: hidden;
    /* aspect-ratio: 3/4; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.default-avatar {
    width: 60%;
    height: auto;
}

.qr-section {
    flex: 1;
    background: white;
    /* border-radius: 8px; */
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .qr-code {
    width: 50%;
    max-width: 250px;
    height: auto;
} */

#qrcode {
  width: 100%;        /* 부모 기준 비율 */
  max-width: 250px;  /* 너무 커지지 않게 제한 */
  margin: 0 auto;
}

#qrcode canvas {
	width: 100%;      /* 부모 #qrcode에 맞게 반응형 */
    height: auto;
}

/* ============================================
   성도등록증 카드
============================================ */
.membership-card {
	width: 100%;
	/* width: 295px; */
	height: 250px;
    background: url(./asset/card_bg.jpg) no-repeat;
	background-size: 100% 250px;
	/* background-size: cover; */
	position: relative;
	margin: 0 auto;
	font-family: "Noto Sans KR", 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.card-title {
    font-size: 18px;
    color: #0068b7;
    font-weight: bold;
}

.card-title-en {
    font-size: 10px;
    color: #0068b7;
    margin-top: 3px;
}

.cross-icon {
    font-size: 32px;
    color: #0068b7;
}

.card-body {
    position: absolute;
	top: 105px;
	left: 21px;
}

.info-row {
    display: flex;
    padding: 1px 0;
    font-size: 14px;
    font-weight: bold;	
}

.info-label {
    width: 90px;
	font-family: "Noto Sans KR", 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-weight: bold;
    color: #000;
	line-height: 22px;
}

.info-value {
    flex: 1;
    color: #000;
	font-family: "Noto Sans KR", 'Malgun Gothic', '맑은 고딕', sans-serif;
	font-size: 18px;
	line-height: 18px;
}

#memberName {
	font-weight: 800;
}

#memberId, #donationId, #caseId {
	font-weight: normal !important;
}

.card-footer {
    text-align: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.footer-logo {
    width: 180px;
    height: auto;
}