﻿.hidden {
    display: none;
}

.custom-toast {
    position: fixed;
    top: -100px; /* 초기 위치 (화면 밖) */
    left: 50%;
    transform: translateX(-50%);
    background-color: #f4f4f5; /* 모던한 배경 색상 */
    color: #333; /* 텍스트 색상 */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: top 0.5s ease, opacity 0.5s ease;
}

    .custom-toast.visible {
        top: 20px; /* 화면 안으로 내려옴 */
        opacity: 1;
    }

    .custom-toast.hidden {
        top: -100px; /* 다시 위로 올라감 */
        opacity: 0;
    }

.custom-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    width: 24px;
    height: 24px;
}

    .toast-icon.success {
        background: url('https://img.icons8.com/color/48/000000/ok--v1.png') no-repeat center;
        background-size: contain;
    }

    .toast-icon.error {
        background: url('https://img.icons8.com/color/48/000000/cancel--v1.png') no-repeat center;
        background-size: contain;
    }

    .toast-icon.info {
        background: url('https://img.icons8.com/color/48/000000/info.png') no-repeat center;
        background-size: contain;
    }

    .toast-icon.warning {
        background: url('https://img.icons8.com/color/48/000000/error.png') no-repeat center;
        background-size: contain;
    }

.custom-toast-message {
    margin: 0;
}

.hidden {
    display: none;
}

/* 오버레이 스타일: 이벤트 차단 및 배경 투명화 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.001); /* 투명한 어두운 배경 */
    z-index: 9998; /* 모든 UI 위로 */
    pointer-events: auto; /* 클릭 이벤트 처리 */
}

    /* 오버레이 숨김 */
    .confirm-overlay.hidden {
        pointer-events: none; /* 클릭 이벤트를 무시 */
        display: none;
    }

/* Confirm 창 */
.confirm {
    position: fixed;
    top: -200px; /* 초기 위치 (화면 위) */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    width: 320px;
    z-index: 9999; /* 오버레이 위에 표시 */
    opacity: 0;
    transition: top 0.4s ease, opacity 0.4s ease;
}

    .confirm.visible {
        top: 40px; /* 화면 안으로 내려옴 */
        opacity: 1;
    }

    .confirm.hidden {
        top: -200px; /* 다시 화면 위로 올라감 */
        opacity: 0;
    }

/* 버튼 스타일 */
.confirm-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 1rem
}

.confirm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

    .confirm-btn.ok-btn {
        background-color: #3897f0;
        color: #fff;
    }

        .confirm-btn.ok-btn:hover {
            background-color: #2876c9;
        }

    .confirm-btn.cancel-btn {
        background-color: #f5f5f5;
        color: #333;
    }

        .confirm-btn.cancel-btn:hover {
            background-color: #e0e0e0;
        }


#custom-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index:9999;
}

    #custom-prompt-overlay .custom-prompt-content {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 300px;
        text-align: center;
    }

        #custom-prompt-overlay .custom-prompt-content input {
            width: 80%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

    #custom-prompt-overlay .button-group {
        margin-top: 10px;
    }

    #custom-prompt-overlay #prompt-submit, #custom-prompt-overlay #prompt-cancel {
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin: 5px;
    }

    #custom-prompt-overlay #prompt-submit {
        background-color: #007BFF;
        color: white;
    }

        #custom-prompt-overlay #prompt-submit:hover {
            background-color: #0056b3;
        }

    #custom-prompt-overlay #prompt-cancel {
        background-color: #f44336;
        color: white;
    }

        #custom-prompt-overlay #prompt-cancel:hover {
            background-color: #d32f2f;
        }
