﻿/* Toast */
.p-toast {
    position: fixed;
    bottom: 1.8rem;
    right: 1.8rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1.3rem;
    border-radius: 12px;
    font-family: var(--p-font);
    font-size: .88rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,.13);
    animation: toastIn .3s cubic-bezier(.22,1,.36,1) both;
    max-width: 340px;
    word-break: break-word;
}

    .p-toast.success {
        background: #eafaf3;
        color: #1a6645;
        border: 1.5px solid #b2e8d0;
    }

    .p-toast.error {
        background: #fdf0f1;
        color: #9b2335;
        border: 1.5px solid #f0bfc4;
    }

    .p-toast.warning {
        background: #fffbea;
        color: #7d5a00;
        border: 1.5px solid #ffe08a;
    }

    .p-toast i {
        font-size: 1rem;
        flex-shrink: 0;
    }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Notyf container pozisyon override ── */
.notyf {
    bottom: 1.8rem !important;
    right: 1.8rem !important;
}

/* ── Base toast ── */
.notyf__toast {
    border-radius: 12px !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.13) !important;
    padding: .85rem 1.3rem !important;
    max-width: 340px !important;
    word-break: break-word !important;
    animation: toastIn .3s cubic-bezier(.22,1,.36,1) both !important;
    display: flex !important;
    align-items: center !important;
    gap: .65rem !important;
}

    /* ── Notyf'in kendi arka plan rengini sıfırla ── */
    .notyf__toast:before {
        display: none !important;
    }

.notyf__ripple {
    display: none !important;
}

/* ── Success ── */
.notyf__toast--success {
    background: #eafaf3 !important;
    border: 1.5px solid #b2e8d0 !important;
}

    .notyf__toast--success .notyf__message,
    .notyf__toast--success .notyf__icon {
        color: #1a6645 !important;
    }

/* ── Error ── */
.notyf__toast--error {
    background: #fdf0f1 !important;
    border: 1.5px solid #f0bfc4 !important;
}

    .notyf__toast--error .notyf__message,
    .notyf__toast--error .notyf__icon {
        color: #9b2335 !important;
    }
/* ── Warning ── */
.notyf__toast--warning {
    background: #fffbea !important;
    border: 1.5px solid #ffe08a !important;
}

    .notyf__toast--warning .notyf__message,
    .notyf__toast--warning .notyf__icon {
        color: #7d5a00 !important;
    }

/* ── İkon ── */
.notyf__icon {
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}

/* ── Giriş animasyonu ── */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
