/* ================================================================
   ROBAS Toast — Unified notification styles
   Inspired by Notion / Linear / GitHub / Vercel
   ================================================================ */

.rb-toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rb-toast {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    max-width: 480px;
    pointer-events: auto;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);

    /* enter animation — start state */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rb-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.rb-toast--exit {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.rb-toast-icon {
    flex-shrink: 0;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

.rb-toast-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- SUCCESS ---- */
.rb-toast--success {
    background: #f7fdf9;
    color: #1a7a3a;
    border: 1px solid #d1f0db;
}
.rb-toast--success .rb-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* ---- INFO ---- */
.rb-toast--info {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e5e7eb;
}
.rb-toast--info .rb-toast-icon {
    background: #e9ecef;
    color: #6b7280;
}

/* ---- WARNING ---- */
.rb-toast--warning {
    background: #fffbf5;
    color: #92400e;
    border: 1px solid #fde4b5;
}
.rb-toast--warning .rb-toast-icon {
    background: #fef3c7;
    color: #d97706;
}

/* ---- ERROR ---- */
.rb-toast--error {
    background: #fef7f7;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.rb-toast--error .rb-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .rb-toast-container {
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: none;
    }
    .rb-toast {
        white-space: normal;
        max-width: 100%;
        font-size: 12.5px;
        padding: 6px 12px;
    }
}
