/* ═══════════════════════════════════════════════════════════
   UNIDET v2 — Toasts + boutons refresh uniformes
   Fichier : /unidet-v2/dashboard/assets/ui-toast.css
   ═══════════════════════════════════════════════════════════ */

/* ─── Toast (notification flottante) ─── */
#ud-toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}
.ud-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(10, 14, 23, 0.18);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #0A0E17;
    pointer-events: auto;
    animation: udToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid #C9A227;
    min-width: 260px;
}
.ud-toast.is-success { border-left-color: #10B981; }
.ud-toast.is-error   { border-left-color: #EF4444; }
.ud-toast.is-info    { border-left-color: #3B82F6; }
.ud-toast.is-warning { border-left-color: #F59E0B; }

.ud-toast-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}
.ud-toast.is-success .ud-toast-icon { background: #10B981; }
.ud-toast.is-error   .ud-toast-icon { background: #EF4444; }
.ud-toast.is-info    .ud-toast-icon { background: #3B82F6; }
.ud-toast.is-warning .ud-toast-icon { background: #F59E0B; }

@keyframes udToastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
.ud-toast.is-leaving {
    animation: udToastOut 0.25s ease forwards;
}
@keyframes udToastOut {
    to { opacity: 0; transform: translateX(30px); }
}

/* ─── Bouton refresh uniforme ─── */
.ud-btn-refresh {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: #fff !important;
    border: 1.5px solid #E5E9F0 !important;
    border-radius: 8px !important;
    color: #0A0E17 !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    line-height: 1 !important;
    min-width: 110px !important;
    justify-content: center !important;
}
.ud-btn-refresh:hover:not(:disabled) {
    background: #0A0E17 !important;
    border-color: #0A0E17 !important;
    color: #C9A227 !important;
}
.ud-btn-refresh:hover:not(:disabled) svg {
    stroke: #C9A227 !important;
}
.ud-btn-refresh:disabled {
    opacity: 0.7 !important;
    cursor: wait !important;
}
.ud-btn-refresh svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease;
}
.ud-btn-refresh.is-loading svg {
    animation: udRefreshSpin 0.8s linear infinite;
}
@keyframes udRefreshSpin {
    to { transform: rotate(360deg); }
}

/* ─── Fix feedback inline (n'existe plus, on utilise toast) ─── */
.udp-feedback {
    display: none !important;
}