/*
 * Copyright (C) Dropinbase - All Rights Reserved
 * Auth message toasts: top-center, auto-dismiss with a progress bar, linger on hover.
*/

.dib-toast-wrap {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: auto;
    max-width: 92vw;
    pointer-events: none;
}

.dib-toast {
    pointer-events: auto;
    min-width: 260px;
    max-width: 520px;
    background: #2b2f33;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.dib-toast.dib-toast--hide {
    opacity: 0;
    transform: translateY(-12px);
}

.dib-toast__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
}

.dib-toast__msg {
    flex: 1;
    word-break: break-word;
}

.dib-toast__close {
    cursor: pointer;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

.dib-toast__close:hover { color: #fff; }

.dib-toast__bar {
    height: 3px;
    width: 100%;
    transform-origin: left center;
    background: #4aa3df;
}

/* message types */
.dib-toast--error   { background: #b3261e; }
.dib-toast--error   .dib-toast__bar { background: rgba(255, 255, 255, 0.85); }
.dib-toast--success { background: #1e7d34; }
.dib-toast--success .dib-toast__bar { background: rgba(255, 255, 255, 0.85); }
.dib-toast--notice  .dib-toast__bar { background: #4aa3df; }
