/**
 * SOFI Toast Notification Styles
 * Beautiful, modern toast notifications
 */

/* Toast Container */
.sofi-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sofi-toast {
        top: 70px;
        left: 16px;
        right: 16px;
        min-width: auto;
        max-width: none;
    }
}

/* Toast Icon */
.sofi-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast Content */
.sofi-toast-content {
    flex: 1;
    min-width: 0;
}

.sofi-toast-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.sofi-toast-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Toast Action Button */
.sofi-toast-action {
    background: #1877F2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sofi-toast-action:hover {
    background: #166FE5;
    transform: scale(1.05);
}

.sofi-toast-action:active {
    transform: scale(0.98);
}

/* Toast Close Button */
.sofi-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    font-size: 18px;
    flex-shrink: 0;
    transition: color 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sofi-toast-close:hover {
    color: #666;
}

/* Toast Types */
.sofi-toast-success {
    border-left: 4px solid #00d09c;
}

.sofi-toast-error {
    border-left: 4px solid #ff4757;
}

.sofi-toast-warning {
    border-left: 4px solid #ffa502;
}

.sofi-toast-info {
    border-left: 4px solid #1877F2;
}

/* Animations */
@keyframes sofiToastSlideIn {
    from {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sofiToastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
}

/* Mobile animations */
@media (max-width: 768px) {
    @keyframes sofiToastSlideIn {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes sofiToastSlideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-20px);
            opacity: 0;
        }
    }
}

.sofi-toast-enter {
    animation: sofiToastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sofi-toast-exit {
    animation: sofiToastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stack multiple toasts */
.sofi-toast:nth-child(n+2) {
    margin-top: 12px;
}
