/* Setup toasts */
.toast {
    min-width: 20rem;
    width: auto;
    max-width: 30rem;
    height: 3rem;
    overflow: hidden;
    border-radius: var(--rounded-m);
    border-left: 5px solid var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    background-color: var(--background-light);
    z-index: 10000000;
}

.toast-primary { 
    border-left: 5px solid var(--primary-50) !important; 
    background-color: var(--primary-90);
}

.toast-accent { 
    border-left: 5px solid var(--accent-50) !important; 
    background-color: var(--accent-90);
}

.toast-info { 
    border-left: 5px solid var(--info-50) !important; 
    background-color: var(--info-90);
}

.toast-success { 
    border-left: 5px solid var(--success-50) !important;
    background-color: var(--success-90);
}

.toast-warning { 
    border-left: 5px solid var(--warning-50) !important;
    background-color: var(--warning-90);
}

.toast-error { 
    border-left: 5px solid var(--error-50) !important;
    background-color: var(--error-90);
}

/* Toast positions */
.toast-left-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.toast-left-bottom {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.toast-right-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.toast-right-bottom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.toast-right-center {
    position: absolute;
    top: calc(50% - 3rem);
    right: 1rem;
}

.toast-left-center {
    position: absolute;
    top: calc(50% - 3rem);
    left: 1rem;
}

/* Toast icons */
.toast .toast-icon {
    position: relative;
    margin-left: 1rem;
    font-size: 22px;
}

.toast-primary > .toast-icon { color: var(--primary-50);}
.toast-accent > .toast-icon { color: var(--accent-50);}
.toast-info > .toast-icon { color: var(--info-50);}
.toast-success > .toast-icon { color: var(--success-50);}
.toast-warning > .toast-icon { color: var(--warning-50);}
.toast-error > .toast-icon { color: var(--error-50);}

/* Toast text */
.toast .toast-text {
    position: relative;
    margin-right: 1rem;
    font-weight: 600;
}