/*!
 * Toastify js 1.12.0
 * https://github.com/apvarun/toastify-js
 * @license MIT licensed
 *
 * Copyright (C) 2018 Varun A P
 */

.toastify {
    padding: 12px 20px;
    color: #ffffff;
    display: inline-block;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);
    background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);
    background: linear-gradient(135deg, #73a5ff, #5477f5);
    position: fixed;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    max-width: calc(50% - 20px);
    z-index: 2147483647;
}

.toastify.on {
    opacity: 1;
}

.toast-close {
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    opacity: 0.4;
    padding: 0 5px;
}

.toastify-right {
    right: 15px;
}

.toastify-left {
    left: 15px;
}

.toastify-top {
    top: -150px;
}

.toastify-bottom {
    bottom: -150px;
}

.toastify-rounded {
    border-radius: 25px;
}

.toastify-avatar {
    width: 1.5em;
    height: 1.5em;
    margin: -7px 5px;
    border-radius: 2px;
}

.toastify-center {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
    max-width: -moz-fit-content;
}

@media only screen and (max-width: 360px) {
    .toastify-right, .toastify-left {
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        max-width: fit-content;
    }
}

/* BebanStore Toast Custom Styles */
.bebanstore-toast {
    font-family: 'YekanBakh', 'Tahoma', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 16px 20px !important;
    margin: 8px !important;
    direction: rtl !important;
    text-align: right !important;
    max-width: 400px !important;
    word-wrap: break-word !important;
    line-height: 1.5 !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
}

.bebanstore-toast-success {
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
    color: #ffffff !important;
}

.bebanstore-toast-error {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    color: #ffffff !important;
}

.bebanstore-toast-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
}

.bebanstore-toast-info {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    color: #ffffff !important;
}

/* Toast animation improvements - top to bottom */
.bebanstore-toast {
    animation: bebanstore-toast-slide-down 0.4s ease-out !important;
    transform-origin: top center !important;
}

@keyframes bebanstore-toast-slide-down {
    from {
        transform: translateY(-100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Toast exit animation */
.bebanstore-toast.toastify-on-exit {
    animation: bebanstore-toast-slide-up 0.3s ease-in forwards !important;
}

@keyframes bebanstore-toast-slide-up {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-100%) scale(0.8);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .bebanstore-toast {
        min-width: 280px !important;
        max-width: 95vw !important;
        margin: 6px !important;
        font-size: 13px !important;
        padding: 14px 18px !important;
        border-radius: 4px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bebanstore-toast {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    }
}

/* Hover effects */
.bebanstore-toast:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

/* Toast container positioning */
#toastify-container {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
}

/* Multiple toasts spacing */
#toastify-container .bebanstore-toast {
    margin-bottom: 12px !important;
}

/* Toast text styling */
.bebanstore-toast {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    letter-spacing: 0.3px !important;
}
