/* ======================================================= */
/* REVOPSLY MODERN SNACKBAR (TOAST) SYSTEM                */
/* ======================================================= */

:root {
    --toast-bg: linear-gradient(145deg, rgba(16, 27, 59, 0.93), rgba(8, 14, 34, 0.95));
    --toast-border: rgba(126, 171, 255, 0.36);
    --toast-success: #32e1a0;
    --toast-error: #ff5d8f;
    --toast-info: #60b5ff;
    --toast-warning: #ffc861;
    --toast-shadow: 0 22px 42px -20px rgba(57, 93, 255, 0.92);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    position: relative;
    padding: 16px 20px;
    background: var(--toast-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--toast-border);
    border-left: 4px solid var(--toast-info);
    border-radius: 14px;
    box-shadow: var(--toast-shadow);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
    cursor: default;
    
    /* Animation */
    transform-origin: right center;
    animation: toast-in 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s, opacity 0.3s;
}

.toast.removing {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
}

/* Status variants */
.toast.success { border-left-color: var(--toast-success); }
.toast.error { border-left-color: var(--toast-error); }
.toast.info { border-left-color: var(--toast-info); }
.toast.warning { border-left-color: var(--toast-warning); }

.toast-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.toast.success .toast-icon { color: var(--toast-success); }
.toast.error .toast-icon { color: var(--toast-error); }
.toast.info .toast-icon { color: var(--toast-info); }
.toast.warning .toast-icon { color: var(--toast-warning); }

.toast-message {
    line-height: 1.4;
    font-weight: 500;
}

.toast-close {
    margin-left: auto;
    opacity: 0.5;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Timer progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.toast-progress-fill {
    height: 100%;
    background: currentColor;
    opacity: 0.48;
    animation: toast-timer linear forwards;
}

@keyframes toast-in {
    from {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-timer {
    from { width: 100%; }
    to { width: 0%; }
}
