html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

/* 모달 컨테이너 */
.modal-outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
}

/* 모달 */
.modal {
    display: none;
    position: relative;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    pointer-events: auto;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* 모달 닫기 버튼 */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-close:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* 모달 콘텐츠 */
.modal h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.modal p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 트리거 버튼 래퍼 */
.trigger-wrap {
    position: fixed;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 1;
}

/* 트리거 버튼 */
.modal-trigger {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.modal-trigger:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.modal-trigger:active {
    transform: translateY(0);
}

.modal-trigger:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}
