/* ── Meldingen (snackbars) — huisstijl-restyle ────────────────────────────────
   Ontwerp: curr/mockups/snackbar-restyle-v2.html. Gedrag (positie rechtsonder,
   max 4, dedup, fade-tijden) staat in CurrentlyMainLayout.razor; de per-type
   duur, het tijdsbalkje en de deeplink komen uit Notifications/Notifier.cs.
   Geldt voor álle meldingen — ook directe ISnackbar-calls. */

.mud-snackbar {
    background: rgba(27, 28, 32, 0.97) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--curr-snack-accent, #9CA3AF);
    border-radius: 12px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55) !important;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    padding: 11px 12px 13px 14px;
    font-family: inherit;
}

/* type-accent: blauw / groen / amber (bewust níet het huisstijl-oranje) / rood */
.mud-snackbar.mud-alert-filled-info,    .mud-snackbar.mud-alert-text-info    { --curr-snack-accent: #60A5FA; }
.mud-snackbar.mud-alert-filled-success, .mud-snackbar.mud-alert-text-success { --curr-snack-accent: #34D399; }
.mud-snackbar.mud-alert-filled-warning, .mud-snackbar.mud-alert-text-warning { --curr-snack-accent: #FBBF24; }
.mud-snackbar.mud-alert-filled-error,   .mud-snackbar.mud-alert-text-error   { --curr-snack-accent: #F87171; }

/* icoon in een getinte chip links */
.mud-snackbar .mud-snackbar-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--curr-snack-accent, #9CA3AF) 15%, transparent);
    margin-right: 11px;
}
.mud-snackbar .mud-snackbar-icon .mud-icon-root {
    color: var(--curr-snack-accent, #9CA3AF) !important;
    font-size: 1.15rem;
    width: 19px;
    height: 19px;
}

.mud-snackbar .mud-snackbar-content-message {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

/* kruisje: subtiel, licht op bij hover */
.mud-snackbar .mud-snackbar-content-action .mud-icon-button {
    color: rgba(255, 255, 255, 0.35);
    padding: 4px;
}
.mud-snackbar .mud-snackbar-content-action .mud-icon-button:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

/* Notifier: aflopend tijdsbalkje — animation-duration komt per melding inline mee */
.mud-snackbar .curr-snack-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--curr-snack-accent, #9CA3AF);
    opacity: 0.4;
    animation: currSnackBar linear forwards;
}
@keyframes currSnackBar {
    from { width: 100%; }
    to { width: 0; }
}

/* Notifier: deeplink-melding — hele kaart klikbaar, chevron-regel in de typekleur */
.mud-snackbar:has(.curr-snack-goto) {
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.mud-snackbar:has(.curr-snack-goto):hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.mud-snackbar .curr-snack-goto {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--curr-snack-accent, #9CA3AF);
    opacity: 0.85;
    margin-top: 3px;
}

/* ademruimte t.o.v. de viewport-hoek */
.mud-snackbar-location-bottom-right {
    bottom: 18px;
    right: 18px;
}
