/* THIS SHOULD BE A FILE USRD BY ALL OF GLUPUS */

#toast-container {
    position: fixed;
    top: calc(var(--header-height) + 5rem); /* move it down a bit so that the used may log in. */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    cursor: pointer;
}

.toast {
    display: flex;
    align-items: flex-start;
    background-color: var(--panel-color);
    color: var(--color);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: 14px;
    min-width: 250px;
    border-left: 5px solid var(--emphasis-color);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.toast__icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.toast__content {
    flex: 1;

    max-width: 20em;
}

.toast__title {
    font-weight: bold;
    margin-bottom: 4px;
}

.toast__message {
    line-height: 1.2;
}

button.toast__message {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
}

.toast__close {
    background: transparent;
    border: none;
    color: var(--color);
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Variants */
.toast--info {
    --toast-border-color: #2196f3;
    /* Info: Blue Accent */
}

.toast--success {
    --toast-border-color: var(--emphasis-color);
    /* Success uses emphasis color */
}

.toast--error {
    --toast-border-color: #f44336;
    /* Error: Red Accent */
}
