* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* 폰트 스택 현대화 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #394648;
    color: #394648;
}

.wrap {
    width: 600px;
    padding-top: 100px;
    background-color: #ffffff;
}

.modal-button-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* [추가] 모달 버튼 공통 스타일 */
.modal-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button-confirm {
    background: linear-gradient(135deg, #7AB06D 0%, #69995D 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(105, 153, 93, 0.3);
}

.modal-button-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(105, 153, 93, 0.4);
    filter: brightness(105%);
}

.modal-button-cancel {
    background-color: #F0F0F0;
    color: #777;
}

.modal-button-cancel:hover {
    background-color: #E0E0E0;
    color: #394648;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(57, 70, 72, 0.4);
    backdrop-filter: blur(4px);

    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 모달 내용 (흰색 박스) */
.modal-content {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;

    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

    text-align: center;
    width: 90%;
    max-width: 400px;

    animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 모달 메시지 텍스트 */
.modal-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #394648;
    margin: 0 0 30px 0;
    font-weight: 500;
    white-space: pre-line;
}

/* 토스트 알림을 담을 컨테이너 */
#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 개별 토스트 알림 스타일 */
.toast-item {
    background-color: #FFFFFF;
    color: #394648;

    border-left: 6px solid #EDB6A3;

    padding: 16px 24px;
    border-radius: 4px;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 14px;
    min-width: 280px;

    animation: toastSlideIn 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), fadeOut 0.3s ease-in 2.7s forwards;
}

/* 토스트가 나타날 때 애니메이션 (오른쪽에서 슬라이드) */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(120%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 토스트가 사라질 때 애니메이션 (투명해지기) */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}