/* ============================================
   Snackbar Notification Component
   ============================================ */

.snackbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    min-width: 320px;
    max-width: 560px;
    padding: 16px 48px 16px 20px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.snackbar.snackbar--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Success variant */
.snackbar--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Error variant */
.snackbar--error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Warning variant */
.snackbar--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Icon */
.snackbar__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Message */
.snackbar__message {
    flex: 1;
}

/* Close button */
.snackbar__close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.snackbar__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Progress bar for auto-dismiss */
.snackbar__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 12px 12px;
    animation: snackbar-progress 5s linear forwards;
}

@keyframes snackbar-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .snackbar {
        min-width: auto;
        max-width: none;
        left: 16px;
        right: 16px;
        bottom: 20px;
        transform: translateX(0) translateY(100px);
        font-size: 14px;
    }

    .snackbar.snackbar--visible {
        transform: translateX(0) translateY(0);
    }
}
