/* 
   BuildNet Toast v6.0
   Google Material Design Snackbar
*/

.toast-container {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 400px;
    width: calc(100% - var(--space-12));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-800);
    color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--elevation-3);
    animation: slideUp var(--duration-normal) var(--easing-decelerate);
    pointer-events: auto;
}

.toast.hiding {
    animation: fadeOut var(--duration-fast) var(--easing-accelerate) forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(8px); }
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    margin: 0;
}

.toast-message {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin: 0;
}

.toast-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: white;
    opacity: 0.7;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Toast Variants */
.toast-success .toast-icon { color: #81C995; }
.toast-error .toast-icon { color: #F28B82; }
.toast-warning .toast-icon { color: #FDD663; }
.toast-info .toast-icon { color: #8AB4F8; }

@media (max-width: 480px) {
    .toast-container {
        bottom: var(--space-4);
        left: var(--space-4);
        right: var(--space-4);
        max-width: none;
        width: auto;
    }
}
