/* Ortak bildirim (toast) stili — public/assets/js/toast.js ile birlikte, docs/system_ux_design.md
   "Notifications (Toasts)". Tüm layout'larda yüklenir; Bootstrap'e bağlı değildir.
   Sağ ÜSTte durur: formların alt sağındaki "Kaydet" düğmesini kapatmasın diye. */
.tdu-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.tdu-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem .85rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    font-family: Roboto, system-ui, sans-serif;
    font-size: .9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
}

.tdu-toast-show {
    opacity: 1;
    transform: none;
}

.tdu-toast-icon {
    margin-top: .15rem;
    flex: 0 0 auto;
}

.tdu-toast-body {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tdu-toast-close {
    flex: 0 0 auto;
    margin: -.15rem -.2rem 0 0;
    padding: 0 .35rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1.2;
    opacity: .8;
    cursor: pointer;
}

.tdu-toast-close:hover,
.tdu-toast-close:focus-visible {
    opacity: 1;
}

/* Renkler: koyu zemin + beyaz yazı (success/error), açık zemin + koyu yazı (warning/info) — AA kontrast. */
.tdu-toast-success {
    background: #1e7b45;
    color: #fff;
}

.tdu-toast-error {
    background: #b42318;
    color: #fff;
}

.tdu-toast-warning {
    background: #fff4d6;
    border-color: #f0c36d;
    color: #5c3d00;
}

.tdu-toast-info {
    background: #e6f4f8;
    border-color: #9fd3e3;
    color: #134b5f;
}

@media (prefers-reduced-motion: reduce) {
    .tdu-toast {
        transition: none;
        transform: none;
    }
}
