﻿/* TOASTER */
.toast-container {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem; /* Bootstrap's p-3 = 1rem padding */
    z-index: 1050; /* Make sure it appears above other content */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space between toasts */
}

.toast {
    opacity: 1;
    margin-bottom: 0.5rem;
    min-width: 250px;
    background-color: var(--clr-background);
}

    .toast.show {
        display: block;
        opacity: 1;
    }

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-clip: padding-box;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.toast-body {
    padding: 0.75rem;
}

.toast-enter {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s, transform 0.3s;
}

.toast-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.toast-exit {
    opacity: 1;
    transition: opacity 0.3s;
}

.toast-exit-active {
    opacity: 0;
}

.toast-btn-icon {
    background: none;
    border: none;
    padding: 0;
    margin-left: auto; /* push to the right */
    cursor: pointer;
    font-size: 1.25rem; /* adjust icon size */
    color: #000; /* or your desired color */
}

    .toast-btn-icon:hover {
        color: #dc3545; /* optional hover effect */
    }

.toast {
    border-left: 5px solid transparent;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.toast-success {
    border-left-color: #198754; /* Bootstrap green */
}

.toast-error {
    border-left-color: #dc3545; /* Bootstrap red */
}

.toast-warning {
    border-left-color: #ffc107; /* Bootstrap yellow */
}

.toast-info {
    border-left-color: #0dcaf0; /* Bootstrap blue */
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.toast-test {
    background-color: hotpink;
}