/* ========================================
   HỘP THOẠI DÙNG CHUNG
======================================== */

.dialog-overlay{

    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}
.dialog-box{
    width:340px;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    font-size:17px;
    font-weight:bold;
    text-align:center;
}
.dialog-header{
    padding:10px;
    color:#FFFFFF;
    font-size: 20px;
    font-weight:500;
    letter-spacing:1px;
    text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.dialog-body{
    padding:18px 20px 10px 20px;
    text-align:center;
    line-height:1.4;
}
.dialog-text{
    margin-bottom:10px;
    font-size:15px;
}
.dialog-code{
    margin-top:8px;
}
.dialog-code-title{
    font-size:14px;
    font-weight:bold;
    color:#555;
}
.dialog-code-value{
    margin-top:2px;
    font-size:22px;
    font-weight:bold;
    color:#1B5E20;
    letter-spacing:0.5px;
}
.dialog-footer{
    padding:12px 0 16px;
    text-align:center;
}
.dialog-footer button{
    padding:8px 34px;
    border:none;
    border-radius:6px;
    font-size:15px;
    cursor:pointer;
    background:#1976d2;
    color:white;
}
.dialog-footer button:hover{
    background:#2196f3;
}
@keyframes dialogShow{
    from{
        transform:scale(.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
.dialog-success{
    background:#2E7D32;
}
.dialog-warning{
    background:#f9a825;
}
.dialog-error{
    background:#c62828;
}

.loading-spinner{
    width:50px;
    height:50px;
    margin:0 auto 18px;
    border:5px solid #d9d9d9;
    border-top:5px solid #1B5E20;
    border-radius:50%;
    animation:spin 0.8s linear infinite;
}
.dialog-wait{
    margin-top:10px;
    color:#666;
    font-size:15px;
    font-style:italic;
}
@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}
