.spinner-container {
    position: relative;
}

.attps-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
}

.spinner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0052cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Popup générique réutilisable */
.attps-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.attps-popup .popup-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    position: relative;
    padding: 20px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.attps-popup .popup-content>.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.attps-popup .popup-close:hover {
    color: #1a1a1a;
}

.attps-popup .popup-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 5px;
}

/* Boutons réutilisables */
.attps-adv-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.attps-adv-search-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attps-adv-search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.3);
}

.attps-adv-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.attps-adv-search-btn-primary {
    background: #0052cc;
    border-color: #0052cc;
    color: #fff;
}

.attps-adv-search-btn-primary:hover:not(:disabled) {
    background: #003087;
    border-color: #003087;
}

.attps-adv-search-btn-secondary {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #4a5568;
}

.attps-adv-search-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #9ca3af;
}

.attps-adv-search-btn-danger {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

.attps-adv-search-btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* Style pour les boutons avec icônes */
.attps-adv-search-btn.has-icon {
    gap: 8px;
}

.attps-adv-search-btn.has-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Ajustements pour les boutons spécifiques */
.attps-adv-search-btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

.attps-adv-search-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}