/* ========== 모달 시스템 ========== */
.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;
    -webkit-overflow-scrolling: touch; /* iOS 모멘텀 스크롤 */
    overscroll-behavior-y: contain;    /* 모달 스크롤이 배경으로 전파 방지 */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
}

.modal-notice {
    padding: 8px 12px;
    margin-bottom: 4px;
    font-size: 10px;
    color: #7B1FA2;
    background: #F3E5F5;
    border-radius: 8px;
}

.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;
}