/* =========================================
   Toast Notification Styles
   ========================================= */

/* Ensure the toast container sits on top of everything */
#toast-container {
    z-index: 10000;
}

/* Base Toast Style Overrides */
.toast {
    opacity: 1 !important;
    /* Force opacity for bootstrap toasts if they fade strangely */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    min-width: 300px;
    transition: all 0.3s ease-in-out;
}

/* Success Toast */
.toast.bg-success {
    background-color: #d1fae5 !important;
    /* Soft Green */
    color: #065f46 !important;
    /* Dark Green Text */
    border-left: 5px solid #059669;
}

.toast.bg-success .btn-close {
    filter: none;
    /* Reset white filter from bootstrap */
    color: #065f46;
}

/* Error Toast */
.toast.bg-danger {
    background-color: #fee2e2 !important;
    /* Soft Red */
    color: #991b1b !important;
    /* Dark Red Text */
    border-left: 5px solid #dc2626;
}

.toast.bg-danger .btn-close {
    filter: none;
    color: #991b1b;
}

/* Info/Neutral Toast */
.toast.bg-primary {
    background-color: #eff6ff !important;
    /* Soft Blue */
    color: #1e40af !important;
    /* Dark Blue Text */
    border-left: 5px solid #2563eb;
}

.toast.bg-primary .btn-close {
    filter: none;
    color: #1e40af;
}

/* Icon Spacing */
.toast-body i {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 10px;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    #toast-container {
        width: 100%;
        padding: 10px;
        right: 0;
        left: 0;
    }

    .toast {
        width: 100%;
        min-width: auto;
    }
}