/* Toast Container */
#toast-container {
    position: fixed;
    z-index: 1050;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Toast Positioning */
.toast-top-right { top: 20px; right: 20px; }
.toast-top-left { top: 20px; left: 20px; }
.toast-bottom-right { bottom: 20px; right: 20px; }
.toast-bottom-left { bottom: 20px; left: 20px; }

/* Toast General Styles */
.toast {
    border-radius: 5px;
    padding: 5px 20px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    border-left: 5px solid transparent;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    opacity: 0.95;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

/* Toast Types with Gradient Effects */
.toast-success {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
}
.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #b91c1c 0%, #f87171 100%);
}
.toast-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
}
.toast-warning {
    border-left-color: #eab308;
    background: linear-gradient(135deg, #b45309 0%, #facc15 100%);
}

/* Toast Title */
.toast-title {
    font-weight: 700;
    font-size: 17px;
}

/* Toast Message */
.toast-message {
    word-wrap: break-word;
}

/* Toast Links */
.toast-message a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}
.toast-message a:hover {
    color: #ddd;
}

/* Bootstrap Icons for Toast Types */
.toast::before {
    font-family: "Bootstrap-icons";
    font-size: 24px;
    margin-right: 3px;
}

.toast-success::before {
    content: "\F270"; /* bi-check-circle */
}
.toast-error::before {
    content: "\F333"; /* bi-exclamation-triangle */
}
.toast-info::before {
    content: "\F44A"; /* bi-info-circle */
}
.toast-warning::before {
    content: "\F33B"; /* bi-exclamation-circle */
}

/* Close Button */
.toast-close-button {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out, transform 0.2s;
    color: white;
}
.toast-close-button:hover {
    opacity: 1;
    transform: scale(1.2);
    color: #000;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    animation: progressBar 5s linear forwards;
}

/* Toast Show Animation */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.toast {
    animation: fadeInUp 0.4s ease-in-out;
}

/* Hover Effect */
.toast:hover {
    transform: scale(1.05);
    box-shadow: 0px 15px 40px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

/* Responsive Toasts */
@media (max-width: 480px) {
    .toast {
        max-width: 90%;
        padding: 14px 18px;
        margin:auto;
    }
}
