/* CSS dành riêng cho trang chính */
.button-example {
    display: inline-flex;
    align-items: center;
    background-color: #fe2c55;
    color: white;
    padding: 2px 2px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    vertical-align: middle;
    white-space: nowrap;
}

/* Overlay thông báo chuyển hướng */
.redirect-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.redirect-message {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 80%;
}

.redirect-message h3 {
    color: #fe2c55;
    margin-bottom: 15px;
}

.redirect-timer {
    font-weight: bold;
    margin-top: 10px;
    font-size: 18px;
}

/* Hiệu ứng loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CSS cho nút Shopee Converter */
.btn-shopee {
    background-color: #ee4d2d;
    color: white !important;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 15px auto;
    max-width: 200px;
    text-align: center;
}

.btn-shopee i {
    margin-right: 6px;
}

.btn-shopee:hover {
    background-color: #d73211;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* CSS responsive cho nút Shopee trên màn hình điện thoại */
@media (max-width: 768px) {
    .btn-shopee {
        margin: 10px auto 0;
        width: 100%;
        max-width: 200px;
        order: 3;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Đảm bảo nút Shopee xuống dòng */
    .nav-menu a.btn-shopee {
        flex-basis: 100%;
        text-align: center;
    }
    
    /* Hiển thị lại text cho nút Shopee */
    .nav-menu a.btn-shopee span.menu-text {
        display: inline-block !important;
    }
    
    .nav-menu a.btn-shopee i {
        margin-right: 6px;
    }
}

/* CSS cho nút ở lại */
.stay-button-wrapper {
    margin-top: 20px;
    text-align: center;
}

#stayBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#stayBtn i {
    margin-right: 8px;
}

#stayBtn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hidden {
    display: none;
}