/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
    min-width: 250px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.toast-text {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Toast Type Styles */
.toast-success {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
}

.toast-info {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.1);
}

.toast-error {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
}

/* Animation for slide in from right */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-notification.show {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .toast-notification {
        top: calc(20px + env(safe-area-inset-top, 0px)) !important;
        right: 16px !important;
        left: 16px !important;
        bottom: auto !important;
        max-width: none !important;
        min-width: auto !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999999 !important;
        position: fixed !important;
        isolation: isolate !important;
    }

    .toast-notification.show {
        transform: translateY(0) !important;
        opacity: 1 !important;
        animation: none !important;
        z-index: 999999 !important;
    }
}

@media (min-width: 641px) {
    .toast-notification {
        bottom: 100px;
        right: 20px;
        left: auto;
        max-width: 350px;
        min-width: 250px;
    }
}

/* Hover effects */
.toast-notification:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}