/* HECC Toast Notification Styles */

#hecc-toast-container {
    z-index: 9999 !important;
}

.hecc-toast {
    min-width: 300px;
    max-width: 400px;
}

.hecc-toast .toast-header {
    border-bottom: none;
}

.hecc-toast .toast-body {
    word-wrap: break-word;
    word-break: break-word;
}

/* Custom animations */
.toast.showing {
    opacity: 0;
    transform: translateX(100%);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

/* Ensure proper stacking */
.toast-container .toast {
    margin-bottom: 0.5rem;
}

.toast-container .toast:last-child {
    margin-bottom: 0;
}

/* Custom theme support */
.toast.bg-warning {
    color: #000 !important;
}

.toast.bg-warning .toast-header {
    color: #000 !important;
}

.toast.bg-warning .btn-close {
    filter: invert(1) grayscale(100%) brightness(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hecc-toast-container {
        top: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        padding: 0 !important;
    }
    
    .hecc-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}