/* ==========================================================
   Notyf - Minimal & Sleek by Bibak
   ========================================================== */

/* Keyframe Animations */
@keyframes notyf-fadeinup {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notyf-fadeoutdown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}

.notyf {
    position: fixed !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    direction: rtl !important;
}


/* بدنه اصلی: خاکستری شیک با مرز مینیمال */
.notyf__toast {
    display: block;
    overflow: hidden;
    pointer-events: auto;
    animation: notyf-fadeinup 0.25s ease-out forwards;
    background: #18181b !important;
    /* رنگ خنثی و شیک تیره (نه مشکی خالص) */
    color: #f4f4f5 !important;
    border: 1px solid #27272a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0 16px;
    border-radius: 10px;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* لبه رنگی ملایم برای تمایز وضعیت‌ها */
.notyf__toast--success {
    border-right: 4px solid #10b981 !important;
    /* نوار باریک سبز تمیز در سمت راست */
}

.notyf__toast--error {
    border-right: 4px solid #f43f5e !important;
    /* نوار باریک قرمز شیک در سمت راست */
}

.notyf__toast--disappear {
    animation: notyf-fadeoutdown 0.2s ease-in forwards;
}

.notyf__toast--upper {
    margin-bottom: 10px;
}

.notyf__toast--lower {
    margin-top: 10px;
}

.notyf__toast--dismissible .notyf__wrapper {
    padding-right: 36px !important;
    padding-left: 12px !important;
}

/* حذف افکت ریپل برای حفظ سادگی */
.notyf__ripple {
    display: none !important;
}

/* آیکون‌ها: ساده و تخت بدون هاله نئونی */
.notyf__icon--error,
.notyf__icon--success {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.notyf__icon--success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.notyf__icon--error {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

/* ضربدر خطا */
.notyf__icon--error:after,
.notyf__icon--error:before {
    content: "";
    background: currentColor;
    display: block;
    position: absolute;
    width: 1.5px;
    border-radius: 2px;
    left: 10px;
    height: 10px;
    top: 6px;
}

.notyf__icon--error:after {
    transform: rotate(-45deg);
}

.notyf__icon--error:before {
    transform: rotate(45deg);
}

/* تیک موفقیت */
.notyf__icon--success:after,
.notyf__icon--success:before {
    content: "";
    background: currentColor;
    display: block;
    position: absolute;
    width: 1.5px;
    border-radius: 2px;
}

.notyf__icon--success:after {
    height: 5px;
    transform: rotate(-45deg);
    top: 10px;
    left: 7px;
}

.notyf__icon--success:before {
    height: 9px;
    transform: rotate(45deg);
    top: 6px;
    left: 11px;
}

/* Layout */
.notyf__wrapper {
    display: flex;
    align-items: center !important;
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
    z-index: 10;
}

.notyf__icon {
    margin-left: 12px;
    margin-right: 0;
}

.notyf__message {
    vertical-align: middle;
    position: relative;
    line-height: 1.5;
    font-size: 0.88rem;
    font-weight: 400;
    color: #e4e4e7;
    text-align: right;
    direction: rtl;
    flex-grow: 1;
}

/* دکمه بستن (ضربدر مینیمال) */
.notyf .notyf__toast .notyf__dismiss {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 10px !important;
    left: auto !important;
    height: 20px !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

.notyf .notyf__toast .notyf__dismiss:hover {
    opacity: 0.9 !important;
}

.notyf .notyf__toast .notyf__dismiss-btn {
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
    height: 18px !important;
    width: 18px !important;
    position: relative !important;
    display: block !important;
}

.notyf .notyf__toast .notyf__dismiss-btn:after,
.notyf .notyf__toast .notyf__dismiss-btn:before {
    content: "" !important;
    background: #a1a1aa !important;
    height: 10px !important;
    width: 1.5px !important;
    border-radius: 1px !important;
    position: absolute !important;
    left: calc(50% - 0.75px) !important;
    top: calc(50% - 5px) !important;
    display: block !important;
}

.notyf .notyf__toast .notyf__dismiss-btn:after {
    transform: rotate(-45deg) !important;
}

.notyf .notyf__toast .notyf__dismiss-btn:before {
    transform: rotate(45deg) !important;
}

/* Responsive */
@media only screen and (max-width: 480px) {
    .notyf {
        padding: 0 14px !important;
        top: 3.5rem !important;
        left: 0 !important;
        right: 0 !important;
        align-items: center !important;
    }

    .notyf__toast {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 8px !important;
    }
}