/**
 * Quotovate Toast Custom Styling
 * Enhancements to make toasts look amazing!
 */

/* Improve toast appearance */
.Toastify__toast {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    min-height: 70px !important;
}

/* Success toast - light blue gradient matching brand */
.Toastify__toast--success {
    background: linear-gradient(135deg, #00C1FF 0%, #0099CC 100%) !important;
    color: #fff !important;
}

/* Error toast - soft red gradient */
.Toastify__toast--error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: #fff !important;
}

/* Info toast - lighter blue gradient */
.Toastify__toast--info {
    background: linear-gradient(135deg, #4facfe 0%, #00C1FF 100%) !important;
    color: #fff !important;
}

/* Warning toast - orange/amber gradient */
.Toastify__toast--warning {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%) !important;
    color: #fff !important;
}

/* Toast body styling */
.Toastify__toast-body {
    padding: 0;
    line-height: 1.5;
}

.Toastify__toast-body > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon styling */
.Toastify__toast-icon {
    flex-shrink: 0;
    width: 24px !important;
    height: 24px !important;
}

/* Close button styling */
.Toastify__close-button {
    opacity: 0.7;
    color: #fff !important;
    padding: 4px;
    align-self: flex-start;
}

.Toastify__close-button:hover {
    opacity: 1;
}

/* Progress bar container */
.Toastify__progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

/* Progress bar itself */
.Toastify__progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8) !important;
    animation-name: Toastify__trackProgress !important;
    animation-timing-function: linear !important;
    transform-origin: left;
}

/* Progress bar animation */
@keyframes Toastify__trackProgress {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Bounce in animation */
@keyframes Toastify__bounceIn {
    from,
    60%,
    75%,
    90%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    from {
        opacity: 0;
        transform: translate3d(3000px, 0, 0);
    }
    60% {
        opacity: 1;
        transform: translate3d(-25px, 0, 0);
    }
    75% {
        transform: translate3d(10px, 0, 0);
    }
    90% {
        transform: translate3d(-5px, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

/* Bounce out animation */
@keyframes Toastify__bounceOut {
    20% {
        transform: translate3d(-20px, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(2000px, 0, 0);
    }
}

/* Make sure container is properly positioned */
.Toastify__toast-container--top-right {
    top: 20px;
    right: 20px;
}

/* Hover state */
.Toastify__toast:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .Toastify__toast-container {
        width: 100vw;
        padding: 0;
        left: 0;
        right: 0;
        margin: 0;
    }

    .Toastify__toast-container--top-right {
        top: 0;
        right: 0;
    }

    .Toastify__toast {
        margin-bottom: 0;
        border-radius: 0 !important;
    }
}
