/* assets/css/common.css */
.byteplugs-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.byteplugs-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5vh auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute !important;
    right: 15px !important;
    top: 15px !important;
    left: auto !important;
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    color: #666 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    z-index: 10 !important;
}

.modal-close:hover {
    background-color: rgba(0,0,0,0.05) !important;
    color: #333 !important;
    transform: rotate(90deg) !important;
}

.auth-tab-content {
    display: none !important;
}

.auth-tab-content.active {
    display: block !important;
}

.message {
    display: none;
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.message.error {
    display: block;
    background-color: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.message.success {
    display: block;
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .byteplugs-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}