/* 공통 모달 오버레이 스타일 */
.common-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

/* 모달 박스 스타일 */
.common-modal {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.common-modal h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

/* Prompt 입력 필드 스타일 수정 */
.common-modal input {
    width: 100%;
    box-sizing: border-box; /* 부모 요소 너비에 맞게 조정 */
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

/* 버튼 스타일 */
.common-modal button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 16px;
}
.common-modal button.secondary {
    background-color: #6c757d;
    margin-left: 10px;
}

/* Progress Bar 스타일 */
#commonProgressBar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    /* 기본 Toast 스타일 */
    #commonToast {
        display: none;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 15px 25px;
        border-radius: 10px;
        z-index: 10001;
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
        font-size: 16px;
        color: #fff;
    }

    /* 일반 알림 스타일 */
    #commonToast.notification {
        background-color: #007bff; /* 파란색 */
    }

    /* 경고 알림 스타일 */
    #commonToast.alert {
        background-color: #dc3545; /* 빨간색 */
    }

    /* Toast 표시 애니메이션 */
    #commonToast.show {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(-10px);
    }