/* R150.3: styles voor shared/ui-feedback.js — dependency-vrij, werkt op alle tool-pagina's */

/* ── Toasts ─────────────────────────────────────────────────────────── */
.ui-toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.ui-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #202124;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    border-left: 4px solid #1a73e8;
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.ui-toast--visible { opacity: 1; transform: translateX(0); }
.ui-toast--success { border-left-color: #1e8e3e; }
.ui-toast--error   { border-left-color: #d93025; }
.ui-toast--warning { border-left-color: #f9ab00; }

.ui-toast__icon { flex-shrink: 0; }
.ui-toast__text { flex: 1; word-break: break-word; }

.ui-toast__action {
    flex-shrink: 0;
    border: none;
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.ui-toast__action:hover { background: rgba(26, 115, 232, 0.18); }

.ui-toast__close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #5f6368;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 4px;
}
.ui-toast__close:hover { background: rgba(0, 0, 0, 0.06); }

/* ── Confirm-dialog ─────────────────────────────────────────────────── */
.ui-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ui-confirm {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 24px;
    max-width: 420px;
    width: 100%;
    font-family: 'Montserrat', -apple-system, sans-serif;
}

.ui-confirm__text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #202124;
}

.ui-confirm__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ui-confirm__btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.ui-confirm__btn--cancel { background: #f1f3f4; color: #202124; }
.ui-confirm__btn--cancel:hover { background: #e8eaed; }
.ui-confirm__btn--ok { background: #1a73e8; color: #ffffff; }
.ui-confirm__btn--ok:hover { background: #1765cc; }
.ui-confirm__btn--danger { background: #d93025; }
.ui-confirm__btn--danger:hover { background: #b3261e; }

/* ── Skeleton loaders ───────────────────────────────────────────────── */
.ui-skeleton { padding: 8px 0; }

.ui-skeleton__row {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    align-items: center;
}

.ui-skeleton__cell,
.ui-skeleton__block {
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f1f3 25%, #e4e6e9 50%, #f0f1f3 75%);
    background-size: 200% 100%;
    animation: ui-skeleton-shimmer 1.4s ease-in-out infinite;
}

.ui-skeleton__row--card { padding: 6px 0; }
.ui-skeleton__block { height: 84px; width: 100%; border-radius: 10px; }

@keyframes ui-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ui-toast { transition: opacity 0.22s ease; transform: none; }
    .ui-skeleton__cell, .ui-skeleton__block { animation: none; }
}
