/* Toast container - more specific to override Bootstrap */
#toast-container.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Toast notification - more specific to override Bootstrap */
#toast-container .toast {
    margin-bottom: 12px !important;
    padding: 16px 18px 16px 20px !important;
    border-radius: 8px !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    animation: slideIn 0.4s ease-out forwards !important;
    max-width: 450px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
    border-left: 4px solid rgba(255, 255, 255, 0.3) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    opacity: 1 !important;
    transform: none !important;
}

#toast-container .toast::before {
    content: "";
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    margin-right: 12px !important;
}

#toast-container .toast.success::before {
    content: "\f058" !important; /* fa-check-circle */
    color: #ffffff !important;
}

#toast-container .toast.error::before {
    content: "\f071" !important; /* fa-exclamation-triangle */
    color: #ffffff !important;
}

#toast-container .toast.warning::before {
    content: "\f06a" !important; /* fa-exclamation-circle */
    color: #333 !important;
}

#toast-container .toast.info::before {
    content: "\f05a" !important; /* fa-info-circle */
    color: #ffffff !important;
}

/* Toast types - more specific to override Bootstrap */
#toast-container .toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-left-color: #ffffff !important;
}

#toast-container .toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%) !important;
    border-left-color: #ffffff !important;
}

#toast-container .toast.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%) !important;
    color: #333 !important;
    border-left-color: #333 !important;
}

#toast-container .toast.warning .toast-close {
    color: rgba(51, 51, 51, 0.8) !important;
}

#toast-container .toast.warning .toast-close:hover,
#toast-container .toast.warning .toast-close:focus {
    background: rgba(51, 51, 51, 0.1) !important;
}

#toast-container .toast.info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%) !important;
    border-left-color: #ffffff !important;
}

/* Message area inside toast - more specific to override Bootstrap */
#toast-container .toast-message {
    flex: 1 1 auto !important;
    padding-right: 12px !important;
    padding-left: 35px !important; /* Space for icon */
    word-wrap: break-word !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* Close button - more specific to override Bootstrap */
#toast-container .toast-close {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    padding: 8px 10px !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

#toast-container .toast-close:hover,
#toast-container .toast-close:focus {
    background: rgba(255,255,255,0.08) !important;
    outline: none !important;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Hover effects - more specific to override Bootstrap */
#toast-container .toast:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

/* Mobile responsiveness - more specific to override Bootstrap */
@media (max-width: 480px) {
    #toast-container.toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }
    
    #toast-container .toast {
        max-width: none !important;
        margin-bottom: 8px !important;
    }
}