/* Reset and base styles */
.nd-pro-logout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999; 
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
}

.nd-pro-logout-modal[aria-hidden="false"] {
    display: flex;
}

.nd-pro-logout-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative; 
    z-index: 10000;
}

.nd-pro-logout-modal-content h2 {
    margin: 0 0 15px;
    font-size: 1.5em;
    color: #333;
}

.nd-pro-logout-modal-content p {
    margin: 0 0 20px;
    font-size: 1em;
    color: #555;
}

.nd-pro-logout-modal-content .nd-pro-logout-loading {
    display: none;
    margin: 20px 0;
    font-size: 1em;
    color: #007cba;
}

.nd-pro-logout-modal-content.loading .nd-pro-logout-loading {
    display: block;
}

.nd-pro-logout-modal-content.loading p,
.nd-pro-logout-modal-content.loading .nd-pro-logout-modal-actions {
    display: none;
}

.nd-pro-logout-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nd-pro-logout-confirm,
.nd-pro-logout-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.nd-pro-logout-confirm {
    background: #d32f2f;
    color: #fff;
}

.nd-pro-logout-confirm:hover:not(:disabled) {
    background: #b71c1c;
}

.nd-pro-logout-cancel {
    background: #f0f0f0;
    color: #333;
}

.nd-pro-logout-cancel:hover:not(:disabled) {
    color: #333 !important;
    background: #e0e0e0;
    border: none;
}

.nd-pro-logout-confirm:disabled,
.nd-pro-logout-cancel:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .nd-pro-logout-modal-content {
        max-width: 90%;
        padding: 15px;
    }

    .nd-pro-logout-modal-content h2 {
        font-size: 1.25em;
    }

    .nd-pro-logout-modal-content p,
    .nd-pro-logout-modal-content .nd-pro-logout-loading {
        font-size: 0.9em;
        color: #333;
    }

    .nd-pro-logout-confirm,
    .nd-pro-logout-cancel {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* Accessibility */
.nd-pro-logout-modal:focus-within .nd-pro-logout-modal-content {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

/* Prevent scrolling when modal is open */
body.nd-pro-modal-open {
    overflow: hidden;
}