/* ========== 모달 시스템 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
}

.close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: white;
}

/* ========== 출석 알림 모달 ========== */
.attendance-alert-modal .modal-content {
    text-align: center;
    max-width: 400px;
}

.attendance-alert-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.attendance-alert-modal h2 {
    color: #FF9800;
    font-size: 28px;
    margin-bottom: 15px;
}

.attendance-alert-modal p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ── 회원등록 버튼 (➕) 강조 스타일 ── */
#tnav-addmember {
    color: #E53935;
}
#tnav-addmember:active {
    color: #B71C1C;
}
#tnav-addmember .tnav-icon {
    font-size: 22px;
}

/* ── 회원등록 버튼 (➕) 강조 스타일 ── */
#tnav-addmember {
    color: #E53935;
}
#tnav-addmember:active {
    color: #B71C1C;
}
#tnav-addmember .tnav-icon {
    font-size: 22px;
}

/* ── 회원등록 모달 ── */
#memberFormModal {
    -webkit-overflow-scrolling: touch;
    display: none; /* JS에서 flex로 변경 */
}
#memberFormModal .form-section {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 0 14px 14px !important;
    margin: 0 !important;
	max-height: none !important; 
	flex: 1;
}
/* 모달 내 form-header 완전 숨김 (모달 헤더가 대체) */
#memberFormModal .form-header {
    display: none !important;
}
/* 모달 내 collapsed 상태 무시 - 항상 펼침 */
#memberFormModal .form-section.collapsed .form-body {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
}
/* form-body 상단 패딩 제거 (헤더가 없으므로) */
#memberFormModal .form-body {
    padding-top: 8px !important;
}