/* Custom Compact Snackbar (Facebook / Native App Style) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.toast-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse; /* New ones pop up from bottom */
    gap: 10px;
    pointer-events: none;
    align-items: center;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px; /* Reduced from 100px for a softer rounded rectangle look */
    background: #323436; /* Deep dark grey like FB dark mode */
    box-shadow: 0 4px 14px rgba(0,0,0,0.25), 0 0 1px rgba(255,255,255,0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #F5F6F7; /* FB light text */
    min-width: max-content;
    max-width: 90vw;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

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

.toast.hide {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    pointer-events: none;
}

/* Icons */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust SVG sizes for compact pill */
.toast-icon svg {
    width: 18px;
    height: 18px;
}

/* Colors for icon strokes - vibrant to contrast dark background */
.toast.success .toast-icon svg { stroke: #4cd964; fill: rgba(76, 217, 100, 0.1); } 
.toast.error   .toast-icon svg { stroke: #ff3b30; fill: rgba(255, 59, 48, 0.1); } 
.toast.warning .toast-icon svg { stroke: #ffcc00; fill: rgba(255, 204, 0, 0.1); } 
.toast.info    .toast-icon svg { stroke: #007aff; fill: rgba(0, 122, 255, 0.1); }

.toast-body {
    line-height: 1.4;
    letter-spacing: 0.2px;
}

@media (max-width: 640px) {
    .toast-container {
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
        align-items: stretch;
    }

    .toast {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
}
