/*MODAL OVERLAY*/
.modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.show{
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

/*UPDATEBOX MODAL*/
.updatebox-modal{
    background: linear-gradient(135deg, #ffffff 0%, #f3cfd1 20%, #c54166 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.updatebox-modal.show{
    transform: scale(1);
    animation: modalSlideIn 0.5s ease forwards;
}
@keyframes modalSlideIn {
    0%{
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    100%{
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-content{
    padding: 30px;
    text-align: center;
}

.modal-image{
    margin-bottom: 20px;
}

.modal-text h2{
    font-family: 'Noto Sans Thai', sans-serif;
    margin-bottom: 20px;
}

.modal-close-btn{
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.modal-close-btn:hover{
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}
.modal-close-btn .fa-times{
    color: #ffffff;
    font-size: 18px;
}

.new-website-btn{
    background: #c54166;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.5s ease;
    font-family: 'Noto Sans Thai', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid #ffbdef;
}
.new-website-btn:hover{
    background: linear-gradient(45deg, #c54166, #fc797f);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Modal feature list styling */
.modal-feature-list{
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.modal-feature-item{
    margin: 12px 0;
    color: #f8f9fa;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1.5;
    padding: 8px 0;
    font-family: 'Noto Sans Thai', sans-serif;
}

.modal-feature-item::before{
    content: none !important;
}

.modal-overlay.active{
    display: none;
}

/*modal responsive*/
@media (max-width:550px){
    .updatebox-modal{
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    .modal-content{
        padding: 20px;
    }
    .modal-image img{
        max-width: 250px;
    }
    .modal-text h2{
        font-size: 18px;
    }
    .modal-feature-list{
        margin: 10px 0;
        padding: 0 5px;
    }
    .modal-feature-item{
        font-size: 14px;
        margin: 10px 0;
        padding: 6px 0;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .new-website-btn{
        padding: 10px 20px;
        font-size: 14px;
    }
    .modal-close-btn{
        width: 30px;
        height: 30px;
        right: 10px;
        top: 10px;
    }
    .modal-close-btn .fa-times{
        font-size: 14px;
    }
}
