/* Toaster Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: black;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    text-transform: none;
}

.toast-close {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    transform-origin: left;
    animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Different toast types */
.toast.success {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    color: black;
}

.toast.error {
    background: linear-gradient(135deg, #FF6B6B, #E55353);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.toast.warning {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    color: #333;
}

.toast.info {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast.hide {
        transform: translateY(-100px);
    }

    .toast-message {
        font-size: 13px;
    }
}

/* Animation bounce effect */
.toast.show {
    animation: toast-slide-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toast-slide-in {
    0% {
        transform: translateX(400px) scale(0.9);
        opacity: 0;
    }
    70% {
        transform: translateX(-10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}