/**
 * Bootstrap Toast Enhanced Styles
 * Modern notification styles for Bootstrap 4 Toasts
 */

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

/* Base Toast Styles */
.toast {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.toast.show {
    display: block;
    opacity: 1;
}

.toast.hide {
    animation: slideOutRight 0.3s ease-out;
}

/* Toast Header Styles */
.toast-header {
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border: none;
}

.toast-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.toast-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.toast-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.toast-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Toast Body */
.toast-body {
    padding: 1rem;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Close Button */
.toast-header .close {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: none;
    opacity: 1;
    transition: all 0.2s;
}

.toast-header .close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Animations */
@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;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .toast {
        background-color: rgba(33, 37, 41, 0.95);
        color: #f8f9fa;
    }
    
    .toast-body {
        color: #f8f9fa;
    }
}