/* Special Actions - Frontend Styles */

.sds-ba-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.5;
}

.sds-ba-notification.sds-ba-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sds-ba-notification.sds-ba-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sds-ba-notification.sds-ba-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading state for buttons */
a[href^="#ajax_"] {
    cursor: pointer;
    position: relative;
}

a[href^="#ajax_"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

a[href^="#ajax_"]::after {
    content: '';
    display: none;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

a[href^="#ajax_"]:disabled::after {
    display: inline-block;
}

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

/* Link styling (optional) */
a[href^="#ajax_"] {
    text-decoration: none;
    transition: all 0.3s ease;
}

a[href^="#ajax_"]:hover:not(:disabled) {
    opacity: 0.8;
}
