/* =============================== */
/* 🎨 NXAdmin Global Dialog Styles  */
/* =============================== */

.nx-dialog {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #2c2f5a;
    border-radius: 12px;
    z-index: 1001;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: #fff;
    animation: fadeIn 0.3s ease;
    transition: background 0.3s;
    padding: 20px;
    max-width: 90%;
    width: 400px;
}

/* Contextual Types */
.nx-dialog-info {
    border-top: 4px solid #17a2b8;
}

.nx-dialog-warning {
    border-top: 4px solid #ffc107;
}

.nx-dialog-danger {
    border-top: 4px solid #dc3545;
}

.nx-dialog-success {
    border-top: 4px solid #28a745;
}

.nx-dialog-content h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #4facfe;
    text-align: left;
}

.nx-dialog-content p {
    font-size: 14px;
    line-height: 1.6;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.nx-btn-danger {
    background: #dc3545;
    color: #fff;
}

.nx-btn-danger:hover {
    background: #c82333;
}

/* Backdrop */
.nx-dialog-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}


@media (max-width: 480px) {
    .nx-dialog {
        width: 95%;
        padding: 15px;
    }
}
